mirror of
https://github.com/meshtastic/python.git
synced 2026-01-18 04:37:59 -05:00
move the slow unit tests into own group
This commit is contained in:
4
Makefile
4
Makefile
@@ -1,6 +1,6 @@
|
||||
# unit test
|
||||
# only run the fast unit tests
|
||||
test:
|
||||
pytest
|
||||
pytest -m unit
|
||||
|
||||
# local install
|
||||
install:
|
||||
|
||||
@@ -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'
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user