mirror of
https://github.com/meshtastic/python.git
synced 2026-01-18 04:37:59 -05:00
try a different way
This commit is contained in:
@@ -140,8 +140,9 @@ def test_smoke1_nodes():
|
|||||||
"""Test --nodes"""
|
"""Test --nodes"""
|
||||||
return_value, out = subprocess.getstatusoutput('meshtastic --nodes')
|
return_value, out = subprocess.getstatusoutput('meshtastic --nodes')
|
||||||
assert re.match(r'Connected to radio', out)
|
assert re.match(r'Connected to radio', out)
|
||||||
assert re.search(r'^│ N │ User', out.encode('utf-8'), re.MULTILINE)
|
output = f'{out}'
|
||||||
assert re.search(r'^│ 1 │', out.encode('utf-8'), re.MULTILINE)
|
assert re.search(r'^│ N │ User', output, re.MULTILINE)
|
||||||
|
assert re.search(r'^│ 1 │', output, re.MULTILINE)
|
||||||
assert return_value == 0
|
assert return_value == 0
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user