fix: replay idempotent upload token safely

This commit is contained in:
ik
2026-09-11 07:42:41 +07:00
parent 486e4c4673
commit 531f1aa82f
2 changed files with 10 additions and 2 deletions
+2
View File
@@ -439,3 +439,5 @@ def test_catch_report_idempotency_key_prevents_duplicates(monkeypatch) -> None:
second = client.post("/api/v1/catch-reports", json=payload, headers=headers)
assert second.status_code == 200, f"Expected 200, got {second.status_code}. Response: {second.json()}"
assert second.json()["idempotent"] is True
assert second.json()["id"] == report_id
assert second.json()["screenshot_upload_token"] == first.json()["screenshot_upload_token"]