fix: replay idempotent upload token safely
This commit is contained in:
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user