move the slow unit tests into own group

This commit is contained in:
Mike Kinney
2021-12-25 13:09:23 -08:00
parent a243fab9af
commit 988540c77d
3 changed files with 7 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
# unit test
# only run the fast unit tests
test:
pytest
pytest -m unit
# local install
install:

View File

@@ -17,7 +17,8 @@ def test_StreamInterface():
assert pytest_wrapped_e.type == Exception
@pytest.mark.unit
# Note: This takes a bit, so moving from unit to slow
@pytest.mark.unitslow
def test_StreamInterface_with_noProto(caplog, reset_globals):
"""Test that we can instantiate a StreamInterface based on nonProto
and we can read/write bytes from a mocked stream
@@ -33,7 +34,8 @@ def test_StreamInterface_with_noProto(caplog, reset_globals):
assert data == test_data
@pytest.mark.unit
# Note: This takes a bit, so moving from unit to slow
@pytest.mark.unitslow
def test_sendToRadioImpl(caplog, reset_globals):
"""Test _sendToRadioImpl()"""
test_data = b'hello'

View File

@@ -4,6 +4,7 @@ addopts = -m "not int and not smoke1 and not smoke2 and not smokewifi and not ex
markers =
unit: marks tests as unit tests
unitslow: marks slow unit tests
int: marks tests as integration tests
smoke1: runs smoke tests on a single device connected via USB
smoke2: runs smoke tests on a two devices connected via USB