Module meshtastic.test.test_mesh_interface

Meshtastic unit tests for node.py

Expand source code
"""Meshtastic unit tests for node.py"""

import pytest

from meshtastic.mesh_interface import MeshInterface


@pytest.mark.unit
def test_MeshInterface():
    """Test that we instantiate a MeshInterface"""
    iface = MeshInterface(noProto=True)
    iface.showInfo()
    iface.localNode.showInfo()
    iface.close()

Functions

def test_MeshInterface()

Test that we instantiate a MeshInterface

Expand source code
@pytest.mark.unit
def test_MeshInterface():
    """Test that we instantiate a MeshInterface"""
    iface = MeshInterface(noProto=True)
    iface.showInfo()
    iface.localNode.showInfo()
    iface.close()