Module meshtastic.tests.test_stream_interface

Meshtastic unit tests for stream_interface.py

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


import pytest

from ..stream_interface import StreamInterface


@pytest.mark.unit
def test_StreamInterface():
    """Test that we can instantiate a StreamInterface"""
    with pytest.raises(Exception) as pytest_wrapped_e:
        StreamInterface(noProto=True)
    assert pytest_wrapped_e.type == Exception

Functions

def test_StreamInterface()

Test that we can instantiate a StreamInterface

Expand source code
@pytest.mark.unit
def test_StreamInterface():
    """Test that we can instantiate a StreamInterface"""
    with pytest.raises(Exception) as pytest_wrapped_e:
        StreamInterface(noProto=True)
    assert pytest_wrapped_e.type == Exception