fix: close library upload flow and harden image storage
Community checks / verify (push) Skipped
Verify Frame Flow / verify (push) Successful in 8m9s

This commit is contained in:
渡口浪人
2026-10-24 00:38:00 +08:00
parent 0859871363
commit 1494904b12
39 changed files with 1471 additions and 240 deletions
+13
View File
@@ -174,3 +174,16 @@ def test_session_changes_invalidate_preview(client, browser, monkeypatch):
]
monkeypatch.setattr(photos.synology, "sid", lambda: "new-session")
assert client.get(item["preview_url"]).status_code == 404
def test_sparse_search_finds_match_after_an_empty_batch(client, browser):
_, rows, _ = browser
rows[45]["filename"] = "later-match.jpg"
first = client.get(
"/api/v1/source-libraries/family/browse?filename=later-match&limit=10"
).json()
assert first["items"] == [] and first["next_offset"] == 40
second = client.get(
"/api/v1/source-libraries/family/browse?filename=later-match&limit=10&offset=40"
).json()
assert [item["name"] for item in second["items"]] == ["later-match.jpg"]