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
@@ -218,7 +218,7 @@ def test_json_and_csv_backup_round_trip_memos_with_all_fields(client):
csv_backup = client.get("/api/v1/export.csv")
assert b"memos" in csv_backup.content
restored_csv = client.post(
"/api/v1/restore.csv?mode=replace",
"/api/v1/restore.csv?mode=merge",
files={"file": ("dodo-export.csv", csv_backup.content, "text/csv")},
)
assert restored_csv.status_code == 200
@@ -278,4 +278,4 @@ def test_legacy_backup_without_memos_still_restores(client):
boot(client)
backup = client.get("/api/v1/export").json()
backup.pop("memos", None)
assert client.post("/api/v1/restore?mode=replace", json=backup).status_code == 200
assert client.post("/api/v1/restore?mode=merge", json=backup).status_code == 200