feat: strengthen backup and mobile workflows
ci / gitleaks (push) Successful in 1m19s
ci / docker (push) Successful in 5m48s

This commit is contained in:
2026-09-16 21:12:52 +08:00
parent 6f38190c92
commit 6c234d7d82
64 changed files with 5059 additions and 635 deletions
+2 -2
View File
@@ -242,7 +242,7 @@ def test_after_completion_recurrence_survives_json_and_csv_round_trips(client):
assert recurrence["after_completion_days"] == 2
assert recurrence["last_completed_at"] is None
restored = client.post("/api/v1/restore?mode=replace", json=exported)
restored = client.post("/api/v1/restore?mode=merge", json=exported)
assert restored.status_code == 200
restored_task = client.get("/api/v1/tasks", params={"q": task["title"]}).json()["items"][0]
restored_recurrence = client.get(f"/api/v1/tasks/{restored_task['id']}/recurrence").json()
@@ -252,7 +252,7 @@ def test_after_completion_recurrence_survives_json_and_csv_round_trips(client):
csv_export = client.get("/api/v1/export.csv")
assert csv_export.status_code == 200
csv_restore = client.post(
"/api/v1/restore.csv?mode=replace",
"/api/v1/restore.csv?mode=merge",
files={"file": ("dodo-export.csv", csv_export.content, "text/csv")},
)
assert csv_restore.status_code == 200