Skip to content

Commit e6f1af8

Browse files
committed
NPA-4474 Fix Python Formatting
1 parent 65d8e57 commit e6f1af8

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

sandbox/api/tests/test_app.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
APP_FILE_PATH = "sandbox.api.app"
2424
CONSENT_FILE_PATH = "sandbox.api.get_consent"
2525

26+
2627
@pytest.mark.parametrize("endpoint", ["/_status", "/_ping", "/health"])
2728
def test_health_check(client: object, endpoint: str) -> None:
2829
"""Test health check endpoints."""

sandbox/api/tests/test_utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
FILE_PATH = "sandbox.api.utils"
1111

12+
1213
@pytest.mark.parametrize(
1314
"request_args,response_file_name,status_code",
1415
[

sandbox/api/utils.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def check_for_consent_errors(request: Request) -> Optional[tuple]:
7979
return generate_response_from_example("./api/examples/GET_Consent/errors/missing-identifier.yaml", 400)
8080
elif identifier and len(identifier_without_system) != 10:
8181
# invalid identifier
82-
return generate_response_from_example("./api/examples/GET_Consent/errors/invalid-identifier.yaml", 400)
82+
return generate_response_from_example("./api/examples/GET_Consent/errors/invalid-identifier.yaml", 422)
8383
elif (
8484
isinstance(identifier, str)
8585
and "|" in identifier
@@ -88,13 +88,11 @@ def check_for_consent_errors(request: Request) -> Optional[tuple]:
8888
# invalid identifier system
8989
return generate_response_from_example(
9090
"./api/examples/GET_Consent/errors/invalid-identifier-system.yaml",
91-
400,
91+
422,
9292
)
9393
elif identifier_without_system == "9000000012":
9494
# invalid status
95-
return generate_response_from_example(
96-
f"{GET_CONSENT_ERRORS}/gp-practice-not-found.yaml", 404
97-
)
95+
return generate_response_from_example(f"{GET_CONSENT_ERRORS}/gp-practice-not-found.yaml", 404)
9896

9997

10098
def check_for_empty(identifier: str, patient_identifier: str) -> Response:

0 commit comments

Comments
 (0)