Skip to content

Commit 8208760

Browse files
committed
VED-26: Revert PDS callout removal.
1 parent f794777 commit 8208760

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

backend/src/fhir_service.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -342,9 +342,6 @@ def search_immunizations(
342342

343343
@timed
344344
def _validate_patient(self, imms: dict) -> dict:
345-
# TODO - REVERT - skipping PDS call for test purposes
346-
return {}
347-
348345
"""
349346
Get the NHS number from the contained Patient resource and validate it with PDS.
350347

backend/tests/test_fhir_service.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,6 @@ def setUp(self):
323323
ImmunizationValidator(add_post_validators=False),
324324
)
325325

326-
@skip
327326
def test_create_immunization(self):
328327
"""it should create Immunization and validate it"""
329328
imms_id = "an-id"
@@ -418,7 +417,6 @@ def test_post_validation_failed(self):
418417
self.imms_repo.create_immunization.assert_not_called()
419418
self.pds_service.get_patient_details.assert_not_called()
420419

421-
@skip
422420
def test_patient_error(self):
423421
"""it should throw error when PDS can't resolve patient"""
424422
self.fhir_service.pds_service.get_patient_details.return_value = None
@@ -443,7 +441,6 @@ def setUp(self):
443441
self.validator = create_autospec(ImmunizationValidator)
444442
self.fhir_service = FhirService(self.imms_repo, self.pds_service, self.validator)
445443

446-
@skip
447444
def test_update_immunization(self):
448445
"""it should update Immunization and validate NHS number"""
449446
imms_id = "an-id"
@@ -480,7 +477,6 @@ def test_id_not_present(self):
480477
passed_imms = self.imms_repo.update_immunization.call_args.args[1]
481478
self.assertEqual(passed_imms["id"], req_imms_id)
482479

483-
@skip
484480
def test_patient_error(self):
485481
"""it should throw error when PDS can't resolve patient"""
486482
self.fhir_service.pds_service.get_patient_details.return_value = None

0 commit comments

Comments
 (0)