Skip to content

Commit 0127bad

Browse files
committed
refactor: updated test utils and formatted constants
1 parent 0652739 commit 0127bad

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

sandbox/api/constants.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,15 @@
6666
CONSENT__SINGLE_CONSENTING_ADULT_RELATIONSHIP = (
6767
f"{CONSENT__DIRECTORY}single-consenting-adult-relationship.yaml"
6868
)
69-
CONSENT__SINGLE_CONSENTING_ADULT_RELATIONSHIP_INCLUDE_BOTH = f"{CONSENT__DIRECTORY}single-consenting-adult-relationship-include-performer-patient.yaml"
69+
CONSENT__SINGLE_CONSENTING_ADULT_RELATIONSHIP_INCLUDE_BOTH = (
70+
f"{CONSENT__DIRECTORY}single-consenting-adult-relationship-include-performer-patient.yaml"
71+
)
7072
CONSENT__SINGLE_MOTHER_CHILD_RELATIONSHIP = (
7173
f"{CONSENT__DIRECTORY}single-mother-child-relationship.yaml"
7274
)
73-
CONSENT__SINGLE_MOTHER_CHILD_RELATIONSHIP_INCLUDE_BOTH = f"{CONSENT__DIRECTORY}single-mother-child-relationship-include-performer-patient.yaml"
75+
CONSENT__SINGLE_MOTHER_CHILD_RELATIONSHIP_INCLUDE_BOTH = (
76+
f"{CONSENT__DIRECTORY}single-mother-child-relationship-include-performer-patient.yaml"
77+
)
7478
CONSENT__STATUS_PARAM_INVALID = (
7579
f"{CONSENT__DIRECTORY}errors/invalid-status-parameter.yaml"
7680
)

sandbox/api/tests/test_utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,7 @@ def test_check_for_related_person_errors(
190190
response = client.get(f"{RELATED_PERSON_API_ENDPOINT}?{request_args}")
191191
# Assert
192192
mock_load_json_file.assert_called_once_with(response_file_name)
193+
assert response.status_code == 500
193194

194195

195196
@pytest.mark.parametrize(

0 commit comments

Comments
 (0)