mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
Fix snapshots after merging
This commit is contained in:
4 files changed
+10
-6
No files matched your search
@@ -75,4 +75,4 @@ class TestSnapshotRoutes:
|
||||
|
||||
response = await client.post(app.url_path_for("create_snapshot", project_id=project.id), json={"name": "snap1"})
|
||||
assert response.status_code == status.HTTP_201_CREATED
|
||||
assert len(os.listdir(os.path.join(project.path, "snapshots"))) == 1
|
||||
assert len(os.listdir(os.path.join(project.path, "snapshots"))) == 2
|
||||
@@ -72,7 +72,7 @@ def test_json(project):
|
||||
|
||||
# new style snapshot
|
||||
snapshot = Snapshot(project, name="snapshot_test2")
|
||||
assert snapshot.__json__() == {
|
||||
assert snapshot.asdict() == {
|
||||
"snapshot_id": snapshot._id,
|
||||
"name": "snapshot_test2",
|
||||
"project_id": project.id,
|
||||
|
||||
Reference in new issue
Block a user