Skip to content

Commit aa681cc

Browse files
cfmCopilot
andauthored
Apply suggestions from code review
Co-authored-by: Copilot <[email protected]>
1 parent 1a07cbd commit aa681cc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

API2.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ direction TB
155155
[*] --> CacheLookup : process(event)
156156
CacheLookup: status = redis.get(event.id)
157157
158-
CacheLookup --> IdempotentBranch : status in {102 Processing, 200 OK, 207 MultiStatus}
158+
CacheLookup --> IdempotentBranch : status in {102 Processing, 200 OK}
159159
CacheLookup --> StartBranch : status == None
160160
161161
state "Enforce idempotency" as IdempotentBranch {

securedrop/tests/test_journalist_api2.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1170,10 +1170,10 @@ def test_api2_source_conversation_truncated(
11701170

11711171
status_code, msg = response.json["events"][event.id]
11721172
# Because some deletes may fail (simulated) and some succeed, the handler
1173-
# returns 200 if all succeed, or 207 (MultiStatus) if any fail.
1173+
# returns 200 if all succeed.
11741174
# The test_files fixtures never cause delete_file_object() to raise,
11751175
# so OK (200) is expected.
1176-
assert status_code in (200, 207)
1176+
assert status_code == 200
11771177

11781178
# Verify item-wise results
11791179
returned_items = response.json["items"]

0 commit comments

Comments
 (0)