mirror of
https://github.com/meshtastic/python.git
synced 2026-09-15 23:13:06 -04:00
try a different way
This commit is contained in:
1 parent
181c04716a
commit
e79faf93d0
1 file changed
+3
-2
@@ -140,8 +140,9 @@ def test_smoke1_nodes():
|
||||
"""Test --nodes"""
|
||||
return_value, out = subprocess.getstatusoutput('meshtastic --nodes')
|
||||
assert re.match(r'Connected to radio', out)
|
||||
assert re.search(r'^│ N │ User', out.encode('utf-8'), re.MULTILINE)
|
||||
assert re.search(r'^│ 1 │', out.encode('utf-8'), re.MULTILINE)
|
||||
output = f'{out}'
|
||||
assert re.search(r'^│ N │ User', output, re.MULTILINE)
|
||||
assert re.search(r'^│ 1 │', output, re.MULTILINE)
|
||||
assert return_value == 0
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user