Fix message_to_json_shows_all test for added MyNodeInfo fields

This commit is contained in:
Ian McEwen
2024-12-20 13:51:27 -07:00
parent cace959ca4
commit f6f8ccfcbc

View File

@@ -556,7 +556,7 @@ def test_active_ports_on_supported_devices_mac_duplicates_check(mock_platform, m
def test_message_to_json_shows_all():
"""Test that message_to_json prints fields that aren't included in data passed in"""
actual = json.loads(message_to_json(mesh_pb2.MyNodeInfo()))
expected = { "myNodeNum": 0, "rebootCount": 0, "minAppVersion": 0 }
expected = { "myNodeNum": 0, "rebootCount": 0, "minAppVersion": 0, "deviceId": "", "pioEnv": "" }
assert actual == expected
@pytest.mark.unit