fix: make indexing review paths replay-safe

This commit is contained in:
Lucas Winther committed 2026-09-27 19:12:56 +02:00
1 parent 77fa48c7a2
commit 653c32db43
24 files changed
+759 -86

No files matched your search

+2
View File
@@ -34,6 +34,8 @@ def test_text_and_byte_range(authenticated: tuple[TestClient, str], tmp_path: Pa
assert client.get(
f"/documents/{digest}/file", headers={"Range": "bytes=99-100"}
).status_code == 416
suffix = client.get(f"/documents/{digest}/file", headers={"Range": "bytes=-2"})
assert suffix.status_code == 206 and suffix.content == b"ef"
def test_unknown_and_missing_documents(