Skip to content

Commit 2f1c794

Browse files
committed
NPA-3899 Fix Unit Tests
NPA-3899 Fix Unit Tests
1 parent 1ff3560 commit 2f1c794

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

sandbox/api/tests/test_app.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,17 +144,17 @@ def test_questionnaire_response(
144144
("request_args,response_file_name,status_code"),
145145
[
146146
(
147-
"performer:identifier=9000000017&status=active&_include=Consent:performer",
147+
"performer:identifier=9000000010&status=active&_include=Consent:performer",
148148
"./api/examples/GET_Consent/adults-consenting.yaml",
149149
200,
150150
),
151151
(
152-
"performer:identifier=9000000016&status=active&_include=Consent:performer",
152+
"performer:identifier=9000000017&status=active&_include=Consent:performer",
153153
"./api/examples/GET_Consent/mixed.yaml",
154154
200,
155155
),
156156
(
157-
"performer:identifier=9000000015&status=active&_include=Consent:performer",
157+
"performer:identifier=9000000019&status=active&_include=Consent:performer",
158158
"./api/examples/GET_Consent/mother-child.yaml",
159159
200,
160160
),

specification/examples/responses/GET_Consent/mother-child.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ ConsentMotherChildBundle:
1212
id: BE974742
1313
identifier:
1414
- system: "https://fhir.nhs.uk/Id/nhs-number"
15-
value: "9000000017"
15+
value: "9000000019"
1616
- system: "https://placeholder.fhir.nhs.uk/Id/local-gp-patient-identifier"
1717
value: "ABC0000001"
1818
patient:
@@ -86,7 +86,7 @@ ConsentMotherChildBundle:
8686
performer:
8787
- identifier:
8888
system: "https://fhir.nhs.uk/Id/nhs-number"
89-
value: "9000000017"
89+
value: "9000000019"
9090
policy:
9191
- authority: "https://www.england.nhs.uk"
9292
uri: "<REPLACE_WITH_LINK_TO_PUBLISHED_NATIONAL_PROXY_STANDARD>"

specification/validated-relationships-service-api.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,11 @@ paths:
355355
356356
## Sandbox test scenarios
357357
358-
For details of sandbox test scenarios, or to try out the sandbox using our 'Try it out' feature, see the documentation for each endpoint.
358+
| Scenario | Request | Response |
359+
| -------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------ |
360+
| A single active proxy relationship for two consenting adults with capacity | `performer:identifier`=`9000000010` and `status`=`active` and `_include`=`Consent:performer` | HTTP Status 200 Bundle containing a single active proxy relationship for two consenting adults with capacity |
361+
| Multiple active proxy relationships with varying legal basis' | `performer:identifier`=`9000000017` and `status`=`active` and `_include`=`Consent:performer` | HTTP Status 200 A Bundle containing multiple active proxy relationships with varying legal basis' |
362+
| A single active proxy relationship for a birth mother & child | `performer:identifier`=`9000000019` and `status`=`active` and `_include`=`Consent:performer` | HTTP Status 200 Bundle containing a single active proxy relationship for a birth mother & child |
359363
360364
operationId: get-consent
361365
parameters:

0 commit comments

Comments
 (0)