File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -366,7 +366,7 @@ def search_immunizations(
366366 BundleEntry (
367367 resource = Immunization .parse_obj (imms ),
368368 search = BundleEntrySearch (mode = "match" ),
369- fullUrl = f"https://api.service.nhs.uk/immunisation-fhir-api /Immunization/{ imms ['id' ]} " ,
369+ fullUrl = f"{ get_service_url () } /Immunization/{ imms ['id' ]} " ,
370370 )
371371 for imms in resources_filtered_for_search
372372 ]
Original file line number Diff line number Diff line change @@ -767,7 +767,7 @@ def test_delete_immunization_throws_authorisation_exception_if_does_not_have_req
767767 self .authoriser .authorise .assert_called_once_with ("Test" , ApiOperationCode .DELETE , {"FLU" })
768768
769769
770- class TestSearchImmunizations (unittest . TestCase ):
770+ class TestSearchImmunizations (TestFhirServiceBase ):
771771 """Tests for FhirService.search_immunizations"""
772772 MOCK_SUPPLIER_SYSTEM_NAME = "Test"
773773
@@ -1100,7 +1100,7 @@ def test_matches_contain_fullUrl(self):
11001100 for i , entry in enumerate (entries ):
11011101 self .assertEqual (
11021102 entry .fullUrl ,
1103- f"https://api.service.nhs.uk/immunisation-fhir-api/Immunization/{ imms_ids [i ]} " ,
1103+ f"https://internal-dev. api.service.nhs.uk/immunisation-fhir-api/Immunization/{ imms_ids [i ]} " ,
11041104 )
11051105
11061106 def test_patient_contains_fullUrl (self ):
You can’t perform that action at this time.
0 commit comments