Skip to content

Commit d8b7829

Browse files
committed
npa-5087 - formatting updates
1 parent d4aeccc commit d8b7829

File tree

3 files changed

+12
-11
lines changed

3 files changed

+12
-11
lines changed

sandbox/api/constants.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,19 @@
4141
GET_CONSENT__SINGLE_CONSENTING_ADULT_RELATIONSHIP_INCLUDE_BOTH = (
4242
f"{GET_CONSENT__DIRECTORY}single-consenting-adult-relationship-include-performer-patient.yaml"
4343
)
44-
GET_CONSENT__SINGLE_CONSENTING_ADULT_RELATIONSHIP_INCLUDE_PATIENT = f"{GET_CONSENT__DIRECTORY}single-consenting-adult-relationship-include-patient.yaml"
44+
GET_CONSENT__SINGLE_CONSENTING_ADULT_RELATIONSHIP_INCLUDE_PATIENT = (
45+
f"{GET_CONSENT__DIRECTORY}single-consenting-adult-relationship-include-patient.yaml"
46+
)
4547
GET_CONSENT__SINGLE_CONSENTING_ADULT_RELATIONSHIP_INCLUDE_PERFORMER = (
4648
f"{GET_CONSENT__DIRECTORY}single-consenting-adult-relationship-include-performer.yaml"
4749
)
4850
GET_CONSENT__SINGLE_MOTHER_CHILD_RELATIONSHIP = f"{GET_CONSENT__DIRECTORY}single-mother-child-relationship.yaml"
4951
GET_CONSENT__SINGLE_MOTHER_CHILD_RELATIONSHIP_INCLUDE_BOTH = (
5052
f"{GET_CONSENT__DIRECTORY}single-mother-child-relationship-include-performer-patient.yaml"
5153
)
52-
GET_CONSENT__SINGLE_MOTHER_CHILD_RELATIONSHIP_INCLUDE_PATIENT = f"{GET_CONSENT__DIRECTORY}single-mother-child-relationship-include-patient.yaml"
54+
GET_CONSENT__SINGLE_MOTHER_CHILD_RELATIONSHIP_INCLUDE_PATIENT = (
55+
f"{GET_CONSENT__DIRECTORY}single-mother-child-relationship-include-patient.yaml"
56+
)
5357
GET_CONSENT__SINGLE_MOTHER_CHILD_RELATIONSHIP_INCLUDE_PERFORMER = (
5458
f"{GET_CONSENT__DIRECTORY}single-mother-child-relationship-include-performer.yaml"
5559
)

sandbox/api/get_consent_by_id.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,9 @@
1818
GET_CONSENT_BY_ID__INVALID_ID_ERROR,
1919
GET_CONSENT_BY_ID__MISSING_ID_ERROR,
2020
BAD_REQUEST_INCLUDE_PARAM_INVALID,
21-
INVALIDATED_RESOURCE
22-
)
23-
from .utils import (
24-
generate_response_from_example,
25-
check_for_consent_include_params
21+
INVALIDATED_RESOURCE,
2622
)
23+
from .utils import generate_response_from_example, check_for_consent_include_params
2724

2825

2926
def get_consent_by_id_response(identifier: str) -> Union[dict, tuple]:
@@ -45,15 +42,15 @@ def get_consent_by_id_response(identifier: str) -> Union[dict, tuple]:
4542
GET_CONSENT__SINGLE_CONSENTING_ADULT_RELATIONSHIP,
4643
GET_CONSENT__SINGLE_CONSENTING_ADULT_RELATIONSHIP_INCLUDE_BOTH,
4744
GET_CONSENT__SINGLE_CONSENTING_ADULT_RELATIONSHIP_INCLUDE_PATIENT,
48-
GET_CONSENT__SINGLE_CONSENTING_ADULT_RELATIONSHIP_INCLUDE_PERFORMER
45+
GET_CONSENT__SINGLE_CONSENTING_ADULT_RELATIONSHIP_INCLUDE_PERFORMER,
4946
)
5047
elif identifier == "39df03a2-1b14-4d19-b1dc-d5d8cbf96948":
5148
return check_for_consent_include_params(
5249
_include,
5350
GET_CONSENT__SINGLE_MOTHER_CHILD_RELATIONSHIP,
5451
GET_CONSENT__SINGLE_MOTHER_CHILD_RELATIONSHIP_INCLUDE_BOTH,
5552
GET_CONSENT__SINGLE_MOTHER_CHILD_RELATIONSHIP_INCLUDE_PATIENT,
56-
GET_CONSENT__SINGLE_MOTHER_CHILD_RELATIONSHIP_INCLUDE_PERFORMER
53+
GET_CONSENT__SINGLE_MOTHER_CHILD_RELATIONSHIP_INCLUDE_PERFORMER,
5754
)
5855
elif identifier == "a0922245-1072-40c3-8f4e-a7490c10d365":
5956
return generate_response_from_example(INVALIDATED_RESOURCE, 404)

sandbox/api/tests/test_get_consent_by_id.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@
1818
422,
1919
),
2020
(
21-
"a0922245-1072-40c3-8f4e-a7490c10d365", # No proxy-role record found error
21+
"a0922245-1072-40c3-8f4e-a7490c10d365", # No proxy-role record found error
2222
"",
2323
"./api/examples/errors/invalidated-resource.yaml",
2424
404,
2525
),
2626
(
27-
" ", # Missing consent ID
27+
" ", # Missing consent ID
2828
"",
2929
"./api/examples/GET_Consent/ID/errors/missing-id.yaml",
3030
400,

0 commit comments

Comments
 (0)