Skip to content

Commit 96035bb

Browse files
Review comments
1 parent 1bafbcb commit 96035bb

8 files changed

Lines changed: 6 additions & 50 deletions

File tree

bruno/gateway-api/collections/Steel_Thread/environments/localInt.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ variables:
33
- name: base_url
44
value: http://localhost:5000
55
- name: nhs_number
6-
value: "9658218865"
6+
value: "9692140466"
77
- name: from_ods
88
value: A20047

gateway-api/src/gateway_api/sds/test_client.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ def test_sds_client_get_org_details_success(stub: SdsFhirApiStub) -> None:
3636
Test SdsClient can successfully look up organization details.
3737
3838
:param stub: SDS stub fixture.
39-
:param mock_flask: Mock Flask app fixture.
4039
"""
4140
client = SdsClient(base_url="https://test.com", api_key="example_api_key")
4241

gateway-api/src/gateway_api/test_controller.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
"""Unit tests for :mod:`gateway_api.controller`."""
22

33
from typing import Any
4-
from unittest.mock import Mock
54

65
import pytest
76
from fhir.r4 import (
@@ -25,13 +24,6 @@
2524
from gateway_api.sds import SdsSearchResults
2625

2726

28-
@pytest.fixture
29-
def mock_flask() -> Mock:
30-
mock_flask = Mock()
31-
mock_flask.config = {"SDS_API_TOKEN": "example"}
32-
return mock_flask
33-
34-
3527
def _create_patient(nhs_number: str, gp_ods_code: str | None) -> Patient:
3628
general_practitioner = None
3729
if gp_ods_code is not None:

gateway-api/stubs/stubs/data/bundles/bundles.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ def _wrap_patient_in_bundle(patient: dict[str, Any]) -> dict[str, Any]:
1818
}
1919

2020
ALICE_JONES_9999999999 = _wrap_patient_in_bundle(Patients.ALICE_JONES_9999999999)
21-
INT_9658218865 = _wrap_patient_in_bundle(Patients.INT_9658218865)
21+
INT_9692140466 = _wrap_patient_in_bundle(Patients.INT_9692140466)

gateway-api/stubs/stubs/data/patients/int_9658218865.json

Lines changed: 0 additions & 35 deletions
This file was deleted.

gateway-api/stubs/stubs/data/patients/patients.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ def load_patient(filename: str) -> dict[str, Any]:
2727
)
2828
ALICE_JONES_9999999999 = load_patient("alice_jones_9999999999.json")
2929
ORANGE_BOX_TRIGGER_9690937278 = load_patient("orange_box_trigger_9690937278.json")
30-
INT_9658218865 = load_patient("int_9658218865.json")
30+
INT_9692140466 = load_patient("int_9692140466.json")

gateway-api/stubs/stubs/pds/stub.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def __init__(self, strict_headers: bool = True) -> None:
5353
("9000000012", Patients.INDUCE_PROVIDER_ERROR_9000000012),
5454
("9000000013", Patients.BLANK_ENDPOINT_SDS_RESULT_9000000013),
5555
("9690937278", Patients.ORANGE_BOX_TRIGGER_9690937278),
56-
("9658218865", Patients.INT_9658218865),
56+
("9692140466", Patients.INT_9692140466),
5757
]
5858
for nhs_number, patient in test_patients:
5959
self.upsert_patient(

gateway-api/stubs/stubs/provider/stub.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,10 +279,10 @@ def access_record_structured(
279279
json_data=Bundles.ALICE_JONES_9999999999,
280280
)
281281

282-
if nhs_number == "9658218865":
282+
if nhs_number == "9692140466":
283283
return self._create_response(
284284
status_code=200,
285-
json_data=Bundles.INT_9658218865,
285+
json_data=Bundles.INT_9692140466,
286286
)
287287

288288
return self._create_response(

0 commit comments

Comments
 (0)