Skip to content

Commit b58aee6

Browse files
committed
tidy
1 parent ae8d086 commit b58aee6

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

backend/src/fhir_service.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ def search_immunizations(
299299
for r in self.immunization_repo.find_immunizations(nhs_number, vaccine_types)
300300
if self.is_valid_date_from(r, date_from) and self.is_valid_date_to(r, date_to)
301301
]
302-
302+
303303
# Create the patient URN for the fullUrl field.
304304
# NOTE: This UUID is assigned when a SEARCH request is received and used only for referencing the patient
305305
# resource from immunisation resources within the bundle. The fullUrl value we are using is a urn (hence the
@@ -311,7 +311,7 @@ def search_immunizations(
311311

312312
# Filter and amend the immunization resources for the SEARCH response
313313
resources_filtered_for_search = [Filter.search(imms, patient_full_url) for imms in resources]
314-
314+
315315
# Add bundle entries for each of the immunization resources
316316
entries = [
317317
BundleEntry(

backend/src/models/utils/permission_checker.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,3 @@ def validate_permissions(permissions: list[str], operation: ApiOperationCode, va
2828
operation in expanded_permissions.get(vaccine_type.lower(), [])
2929
for vaccine_type in vaccine_types
3030
)
31-

backend/src/parameter_parser.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def process_search_params(params: ParamContainer) -> SearchParams:
8585
8686
:raises ParameterException:
8787
"""
88-
88+
8989
# patient.identifier
9090
patient_identifiers = params.get(patient_identifier_key, [])
9191
patient_identifier = patient_identifiers[0] if len(patient_identifiers) == 1 else None
@@ -125,7 +125,7 @@ def process_search_params(params: ParamContainer) -> SearchParams:
125125
if len(date_froms) == 1 else date_from_default
126126
except ValueError:
127127
raise ParameterException(f"Search parameter {date_from_key} must be in format: YYYY-MM-DD")
128-
128+
129129
# date.to
130130
date_tos = params.get(date_to_key, [])
131131

backend/tests/test_create_imms.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ def setUp(self):
1515
self.mock_logger_info = self.logger_info_patcher.start()
1616
self.logger_exception_patcher = patch("logging.Logger.exception")
1717
self.mock_logger_exception = self.logger_exception_patcher.start()
18-
1918

2019
def tearDown(self):
2120
patch.stopall()

backend/tests/test_fhir_repository.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -768,13 +768,15 @@ def test_bad_response_from_dynamo(self):
768768
bad_request = 400
769769
response = {"ResponseMetadata": {"HTTPStatusCode": bad_request}}
770770
self.table.query = MagicMock(return_value=response)
771+
771772
with self.assertRaises(UnhandledResponseError) as e:
772773
# When
773774
self.repository.find_immunizations("an-id", ["COVID19"])
774775

775776
# Then
776777
self.assertDictEqual(e.exception.response, response)
777778

779+
778780
class TestImmunizationDecimals(TestFhirRepositoryBase):
779781
"""It should create a record and keep decimal precision"""
780782

0 commit comments

Comments
 (0)