Fix unit tests

This commit is contained in:
Marek Wolan
2023-08-31 10:57:45 +01:00
parent 40d3e04e64
commit 62be66205c
2 changed files with 3 additions and 2 deletions

View File

@@ -48,7 +48,7 @@ def test_nic_deserialize():
nic_json = nic.model_dump_json()
deserialized_nic = NIC.model_validate_json(nic_json)
assert nic == deserialized_nic
assert nic_json == deserialized_nic.model_dump_json()
def test_nic_ip_address_as_gateway_fails():

View File

@@ -43,4 +43,5 @@ class TestIsolatedSimComponent:
comp = TestComponent(name="computer", size=(5, 10))
dump = comp.model_dump_json()
assert comp == TestComponent.model_validate_json(dump)
reconstructed = TestComponent.model_validate_json(dump)
assert comp == reconstructed.model_dump_json()