mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-04 14:31: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
@@ -49,10 +49,10 @@ async def test_vm(vm):
|
||||
@pytest.mark.asyncio
|
||||
async def test_json(vm, tmpdir, compute_project):
|
||||
|
||||
assert vm.__json__()["node_directory"] is not None
|
||||
assert vm.asdict()["node_directory"] is not None
|
||||
compute_project._path = str(tmpdir)
|
||||
vm._linked_clone = True
|
||||
assert vm.__json__()["node_directory"] is not None
|
||||
assert vm.asdict()["node_directory"] is not None
|
||||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
|
||||
Reference in new issue
Block a user