Skip to content

Commit f6f8ccf

Browse files
committed
Fix message_to_json_shows_all test for added MyNodeInfo fields
1 parent cace959 commit f6f8ccf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

meshtastic/tests/test_util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ def test_active_ports_on_supported_devices_mac_duplicates_check(mock_platform, m
556556
def test_message_to_json_shows_all():
557557
"""Test that message_to_json prints fields that aren't included in data passed in"""
558558
actual = json.loads(message_to_json(mesh_pb2.MyNodeInfo()))
559-
expected = { "myNodeNum": 0, "rebootCount": 0, "minAppVersion": 0 }
559+
expected = { "myNodeNum": 0, "rebootCount": 0, "minAppVersion": 0, "deviceId": "", "pioEnv": "" }
560560
assert actual == expected
561561

562562
@pytest.mark.unit

0 commit comments

Comments
 (0)