File tree Expand file tree Collapse file tree 3 files changed +6
-12
lines changed
Expand file tree Collapse file tree 3 files changed +6
-12
lines changed Original file line number Diff line number Diff line change @@ -24,9 +24,9 @@ https://nhsd-jira.digital.nhs.uk/browse/NPA-XXXX
2424<!-- - Any tests added/updated -->
2525<!-- - Evidence that each acceptance criterion from the Jira ticket is met -->
2626
27- - [ ] <!-- Add bullet points for testing instructions -->
28- - [ ] <!-- Add bullet points for testing instructions -->
29- - [ ] <!-- Add bullet points for testing instructions -->
27+ - <!-- Add bullet points for testing instructions -->
28+ - <!-- Add bullet points for testing instructions -->
29+ - <!-- Add bullet points for testing instructions -->
3030
3131---
3232
Original file line number Diff line number Diff line change 9393# POST QuestionnaireResponse
9494POST_QUESTIONNAIRE_RESPONSE_DIRECTORY = "./api/examples/POST_QuestionnaireResponse/"
9595POST_QUESTIONNAIRE_RESPONSE__SUCCESS = f"{ POST_QUESTIONNAIRE_RESPONSE_DIRECTORY } success.yaml"
96- POST_QUESTIONNAIRE_RESPONSE__DUPLICATE_RELATIONSHIP_ERROR = \
96+ POST_QUESTIONNAIRE_RESPONSE__DUPLICATE_RELATIONSHIP_ERROR = (
9797 f"{ POST_QUESTIONNAIRE_RESPONSE_DIRECTORY } errors/duplicate_relationship_error.yaml"
98+ )
9899
99100# GET QuestionnaireResponse
100101GET_QUESTIONNAIRE_RESPONSE_DIRECTORY = "./api/examples/GET_QuestionnaireResponse/"
Original file line number Diff line number Diff line change @@ -42,14 +42,7 @@ def test_post_questionnaire_response(
4242 status = status_code ,
4343 content_type = "application/json" ,
4444 )
45- json = {
46- "resourceType" : "QuestionnaireResponse" ,
47- "source" : {
48- "identifier" : {
49- "value" : nhs_num
50- }
51- }
52- }
45+ json = {"resourceType" : "QuestionnaireResponse" , "source" : {"identifier" : {"value" : nhs_num }}}
5346 # Act
5447 response = client .post (QUESTIONNAIRE_RESPONSE_API_ENDPOINT , json = json )
5548 # Assert
You can’t perform that action at this time.
0 commit comments