mirror of
https://github.com/meshtastic/python.git
synced 2026-04-19 22:37:21 -04:00
add option to configure just the owner short name
This commit is contained in:
@@ -55,6 +55,15 @@ def test_setOwner_and_team(caplog):
|
||||
assert re.search(r'p.set_owner.team:1', caplog.text, re.MULTILINE)
|
||||
|
||||
|
||||
@pytest.mark.unit
|
||||
def test_setOwnerShort(caplog):
|
||||
"""Test setOwner"""
|
||||
anode = Node('foo', 'bar', noProto=True)
|
||||
with caplog.at_level(logging.DEBUG):
|
||||
anode.setOwner(long_name=None, short_name='123')
|
||||
assert re.search(r'p.set_owner.short_name:123:', caplog.text, re.MULTILINE)
|
||||
|
||||
|
||||
@pytest.mark.unit
|
||||
def test_setOwner_no_short_name(caplog):
|
||||
"""Test setOwner"""
|
||||
|
||||
Reference in New Issue
Block a user