had to move test dir to tests because of pytest looking for __init__.py

This commit is contained in:
Mike Kinney
2021-12-09 17:20:13 -08:00
parent 7ea6a85c31
commit 80d13eac85
16 changed files with 85 additions and 23 deletions

View File

@@ -0,0 +1,14 @@
"""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