mirror of
https://github.com/meshtastic/python.git
synced 2026-03-02 21:51:31 -05:00
@@ -395,7 +395,7 @@ def test_main_set_ham_to_KI123(capsys, reset_globals):
|
||||
main()
|
||||
out, err = capsys.readouterr()
|
||||
assert re.search(r'Connected to radio', out, re.MULTILINE)
|
||||
assert re.search(r'Setting HAM ID to KI123', out, re.MULTILINE)
|
||||
assert re.search(r'Setting Ham ID to KI123', out, re.MULTILINE)
|
||||
assert re.search(r'inside mocked setOwner', out, re.MULTILINE)
|
||||
assert re.search(r'inside mocked turnOffEncryptionOnPrimaryChannel', out, re.MULTILINE)
|
||||
assert err == ''
|
||||
@@ -2437,7 +2437,7 @@ def test_main_set_ham_to_KI123(capsys, reset_globals):
|
||||
main()
|
||||
out, err = capsys.readouterr()
|
||||
assert re.search(r'Connected to radio', out, re.MULTILINE)
|
||||
assert re.search(r'Setting HAM ID to KI123', out, re.MULTILINE)
|
||||
assert re.search(r'Setting Ham ID to KI123', out, re.MULTILINE)
|
||||
assert re.search(r'inside mocked setOwner', out, re.MULTILINE)
|
||||
assert re.search(r'inside mocked turnOffEncryptionOnPrimaryChannel', out, re.MULTILINE)
|
||||
assert err == ''
|
||||
@@ -3603,4 +3603,4 @@ and propagates this to our listener iff this was a state change.</p></div>
|
||||
<p>Generated by <a href="https://pdoc3.github.io/pdoc" title="pdoc: Python API documentation generator"><cite>pdoc</cite> 0.10.0</a>.</p>
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
||||
@@ -691,7 +691,7 @@ def test_smoke1_set_ham():
|
||||
Note: Do a factory reset after this setting so it is very short-lived.
|
||||
"""
|
||||
return_value, out = subprocess.getstatusoutput('meshtastic --set-ham KI1234')
|
||||
assert re.search(r'Setting HAM ID', out, re.MULTILINE)
|
||||
assert re.search(r'Setting Ham ID', out, re.MULTILINE)
|
||||
assert return_value == 0
|
||||
# pause for the radio
|
||||
time.sleep(PAUSE_AFTER_REBOOT)
|
||||
@@ -1510,7 +1510,7 @@ def test_smoke1_set_ham():
|
||||
Note: Do a factory reset after this setting so it is very short-lived.
|
||||
"""
|
||||
return_value, out = subprocess.getstatusoutput('meshtastic --set-ham KI1234')
|
||||
assert re.search(r'Setting HAM ID', out, re.MULTILINE)
|
||||
assert re.search(r'Setting Ham ID', out, re.MULTILINE)
|
||||
assert return_value == 0
|
||||
# pause for the radio
|
||||
time.sleep(PAUSE_AFTER_REBOOT)
|
||||
@@ -1819,4 +1819,4 @@ def test_smoke1_test_with_arg_but_no_hardware():
|
||||
<p>Generated by <a href="https://pdoc3.github.io/pdoc" title="pdoc: Python API documentation generator"><cite>pdoc</cite> 0.10.0</a>.</p>
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
||||
@@ -196,7 +196,7 @@ meshtastic --dest \!28979058 --set-owner "MeshyJohn"
|
||||
|
||||
### --set-ham SET_HAM
|
||||
|
||||
Set licensed HAM ID and turn off encryption.
|
||||
Set licensed Ham ID and turn off encryption.
|
||||
|
||||
**Usage**
|
||||
|
||||
|
||||
Reference in New Issue
Block a user