mirror of
https://github.com/meshtastic/python.git
synced 2025-12-31 03:47:55 -05:00
clean up --test tests
This commit is contained in:
@@ -65,21 +65,12 @@ def test_smoke1_pos_fields():
|
||||
assert return_value == 0
|
||||
|
||||
|
||||
@pytest.mark.smoke1
|
||||
def test_smoke1_test_no_arg():
|
||||
"""Test --test
|
||||
Note: Test without arg.
|
||||
"""
|
||||
return_value, _ = subprocess.getstatusoutput('meshtastic --test')
|
||||
assert return_value == 2
|
||||
|
||||
|
||||
@pytest.mark.smoke1
|
||||
def test_smoke1_test_with_arg_but_no_hardware():
|
||||
"""Test --test
|
||||
Note: Since only one device is connected, it will not do much.
|
||||
"""
|
||||
return_value, out = subprocess.getstatusoutput('meshtastic --test 5')
|
||||
return_value, out = subprocess.getstatusoutput('meshtastic --test')
|
||||
assert re.search(r'^Warning: Must have at least two devices', out, re.MULTILINE)
|
||||
assert return_value == 1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user