mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-06 15:21:13 +02:00
Rename __json__() to asdict()
This commit is contained in:
1 parent
44074ff7c9
commit
cefab8d362
89 files changed
+286
-282
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user