Rename __json__() to asdict()

This commit is contained in:
grossmj committed 2021-04-17 23:34:28 +09:30
1 parent 44074ff7c9
commit cefab8d362
89 files changed
+286 -282

No files matched your search

+2 -2
View File
@@ -51,7 +51,7 @@ async def test_json_with_ports(on_gns3vm, compute_project, manager):
}
]
cloud = Cloud("cloud1", str(uuid.uuid4()), compute_project, manager, ports=ports)
assert cloud.__json__() == {
assert cloud.asdict() == {
"name": "cloud1",
"usage": "",
"node_id": cloud.id,
@@ -84,7 +84,7 @@ def test_json_without_ports(on_gns3vm, compute_project, manager):
"""
cloud = Cloud("cloud1", str(uuid.uuid4()), compute_project, manager, ports=None)
assert cloud.__json__() == {
assert cloud.asdict() == {
"name": "cloud1",
"usage": "",
"node_id": cloud.id,