Skip to content

Commit 358d6a0

Browse files
authored
Merge pull request #186 from NHSDigital/dev/NPA-4693_Fix_Sandbox
NPA-4693 Fix MISSING_REFERENCE_CODE Sandbox Response
2 parents 235a11a + c8e2f01 commit 358d6a0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

sandbox/api/get_questionnaire_response.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def get_questionnaire_response_response() -> Union[dict, tuple]:
2929
elif reference_code == "INVALID":
3030
return generate_response_from_example(GET_QUESTIONNAIRE_RESPONSE__INVALID, 400)
3131
elif reference_code == "" or reference_code is None:
32-
return generate_response_from_example(GET_QUESTIONNAIRE_RESPONSE__MISSING, 404)
32+
return generate_response_from_example(GET_QUESTIONNAIRE_RESPONSE__MISSING, 400)
3333
elif reference_code == "ABC123XY":
3434
return generate_response_from_example(GET_QUESTIONNAIRE_RESPONSE__NOT_FOUND, 404)
3535
else:

sandbox/api/tests/test_get_questionnaire_response.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
(
2323
"referenceCode=",
2424
"./api/examples/GET_QuestionnaireResponse/errors/missing_reference_code.yaml",
25-
404,
25+
400,
2626
),
2727
(
2828
"referenceCode=ABC123XY",

0 commit comments

Comments
 (0)