Skip to content

Commit 52c380f

Browse files
committed
Fixed one mistake with merge conflicts
1 parent 0f9bf3d commit 52c380f

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

backend/tests/test_fhir_controller.py

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -235,29 +235,6 @@ def test_get_imms_by_identifer_both_body_and_query_params_present(self, mock_get
235235
body = json.loads(response["body"])
236236
self.assertEqual(body["resourceType"], "OperationOutcome")
237237

238-
@patch("fhir_controller.get_supplier_permissions")
239-
def test_get_imms_by_identifer_imms_identifier_and_element_not_present(self, mock_get_supplier_permissions):
240-
"""it should return Immunization Id if it exists"""
241-
# Given
242-
mock_get_supplier_permissions.return_value = ["COVID19.CRUDS"]
243-
self.service.get_immunization_by_identifier.return_value = {"id": "test", "Version": 1}
244-
lambda_event = {
245-
"headers": {"SupplierSystem": "test"},
246-
"queryStringParameters": {
247-
"-immunization.target": "test",
248-
"immunization.identifier": "https://supplierABC/identifiers/vacc|f10b59b3-fc73-4616-99c9-9e882ab31184",
249-
},
250-
"body": None,
251-
}
252-
# When
253-
response = self.controller.get_immunization_by_identifier(lambda_event)
254-
# Then
255-
self.service.get_immunization_by_identifier.assert_not_called()
256-
257-
self.assertEqual(response["statusCode"], 400)
258-
body = json.loads(response["body"])
259-
self.assertEqual(body["resourceType"], "OperationOutcome")
260-
261238
@patch("fhir_controller.get_supplier_permissions")
262239
def test_get_imms_by_identifer_both_identifier_present(self, mock_get_supplier_permissions):
263240
"""it should return Immunization Id if it exists"""

0 commit comments

Comments
 (0)