Fix snapshots after merging

This commit is contained in:
grossmj committed 2026-04-11 19:54:49 +08:00
1 parent 0d3fad8c8f
commit 9c988b34d0
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
+1 -1
View File
@@ -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,