Fix unit tests
This commit is contained in:
@@ -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():
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user