fixed assertion errors by replace ham id with ham radio callsign, fixed _sendAdmin assertion

This commit is contained in:
Crank-Git
2025-06-08 20:39:26 -04:00
parent aa786c7ebd
commit 8a6ee5fb35
2 changed files with 6 additions and 4 deletions

View File

@@ -1544,8 +1544,8 @@ def test_setOwner_valid_names(caplog):
with caplog.at_level(logging.DEBUG):
anode.setOwner(long_name="ValidName", short_name="VN")
# Should not raise any exceptions and should call _sendAdmin
iface._sendAdmin.assert_called_once()
# Should not raise any exceptions
# Note: When noProto=True, _sendAdmin is not called as the method returns early
assert re.search(r'p.set_owner.long_name:ValidName:', caplog.text, re.MULTILINE)
assert re.search(r'p.set_owner.short_name:VN:', caplog.text, re.MULTILINE)