Skip to content

Commit 2ebef66

Browse files
committed
NPA-4513 Fix Sandbox Unit Tests
1 parent e2ff01b commit 2ebef66

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

sandbox/api/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ def post_consent() -> Union[dict, tuple]:
166166

167167
# Invalid performer NHS number
168168
elif patient_identifier == "9000000000":
169-
response = generate_response_from_example(POST_CONSENT__PERFORMER_IDENTIFIER_ERROR, 400)
169+
response = generate_response_from_example(POST_CONSENT__PERFORMER_IDENTIFIER_ERROR, 422)
170170

171171
else:
172172
# Out of scope errors

sandbox/api/tests/test_app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ def test_get_consent(
205205
("9000000049", POST_CONSENT__DUPLICATE_RELATIONSHIP_ERROR, 409, None),
206206
("9000000041", POST_CONSENT__INVALID_PATIENT_AGE_ERROR, 422, None),
207207
("9000000033", POST_CONSENT__INVALID_EVIDENCE_ERROR, 422, None),
208-
("9000000025", POST_CONSENT__INVALID_ACCESS_LEVEL_ERROR, 400, None),
208+
("9000000025", POST_CONSENT__INVALID_ACCESS_LEVEL_ERROR, 403, None),
209209
],
210210
)
211211
@patch(f"{APP_FILE_PATH}.generate_response_from_example")

0 commit comments

Comments
 (0)