mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-23 22:34:35 +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
@@ -47,7 +47,7 @@ def test_init_with_uuid(project):
|
||||
def test_json(project):
|
||||
|
||||
i = Drawing(project, None, svg="<svg></svg>")
|
||||
assert i.__json__() == {
|
||||
assert i.asdict() == {
|
||||
"drawing_id": i.id,
|
||||
"project_id": project.id,
|
||||
"x": i.x,
|
||||
@@ -57,7 +57,7 @@ def test_json(project):
|
||||
"svg": i.svg,
|
||||
"rotation": i.rotation
|
||||
}
|
||||
assert i.__json__(topology_dump=True) == {
|
||||
assert i.asdict(topology_dump=True) == {
|
||||
"drawing_id": i.id,
|
||||
"x": i.x,
|
||||
"y": i.y,
|
||||
|
||||
Reference in new issue
Block a user