@@ -112,7 +112,7 @@ def test_get_imms_by_identifer(self, mock_get_permissions):
112112 # Then
113113 mock_get_permissions .assert_called_once_with ("test" )
114114 self .service .get_immunization_by_identifier .assert_called_once_with (
115- identifiers , [ "COVID19.CUDS" ] , identifier , _element
115+ identifiers , "test" , identifier , _element
116116 )
117117
118118 self .assertEqual (response ["statusCode" ], 200 )
@@ -187,7 +187,7 @@ def test_not_found_for_identifier(self, mock_get_permissions):
187187 # Then
188188 mock_get_permissions .assert_called_once_with ("test" )
189189 self .service .get_immunization_by_identifier .assert_called_once_with (
190- imms , [ "COVID19.S" ] , identifier , _element
190+ imms , "test" , identifier , _element
191191 )
192192
193193 self .assertEqual (response ["statusCode" ], 200 )
@@ -407,7 +407,7 @@ def test_validate_imms_id_invalid_vaccinetype(self, mock_get_permissions):
407407 # Then
408408 mock_get_permissions .assert_called_once_with ("test" )
409409 self .service .get_immunization_by_identifier .assert_called_once_with (
410- identifiers , [ "COVID19.CRUDS" ] , identifier , _element
410+ identifiers , "test" , identifier , _element
411411 )
412412
413413 self .assertEqual (response ["statusCode" ], 403 )
@@ -457,7 +457,7 @@ def test_get_imms_by_identifier(self,mock_get_permissions):
457457 # Then
458458 mock_get_permissions .assert_called_once_with ("test" )
459459 self .service .get_immunization_by_identifier .assert_called_once_with (
460- identifiers , [ "COVID19.CRUDS" ] , converted_identifier , converted_element
460+ identifiers , "test" , converted_identifier , converted_element
461461 )
462462 self .assertEqual (response ["statusCode" ], 200 )
463463 body = json .loads (response ["body" ])
@@ -490,7 +490,7 @@ def test_not_found_for_identifier(self, mock_get_permissions):
490490 # Then
491491 mock_get_permissions .assert_called_once_with ("test" )
492492 self .service .get_immunization_by_identifier .assert_called_once_with (
493- identifiers , [ "COVID19.CRUDS" ] , converted_identifier , converted_element
493+ identifiers , "test" , converted_identifier , converted_element
494494 )
495495 self .assertEqual (response ["statusCode" ], 200 )
496496 body = json .loads (response ["body" ])
@@ -726,7 +726,7 @@ def test_validate_imms_id_invalid_vaccinetype(self, mock_get_permissions):
726726 # Then
727727 mock_get_permissions .assert_called_once_with ("test" )
728728 self .service .get_immunization_by_identifier .assert_called_once_with (
729- identifiers , [ "COVID19.CRUDS" ] , converted_identifier , converted_element
729+ identifiers , "test" , converted_identifier , converted_element
730730 )
731731
732732 self .assertEqual (response ["statusCode" ], 403 )
@@ -840,10 +840,10 @@ def setUp(self):
840840 self .controller = FhirController (self .authorizer , self .service )
841841 self .logger_info_patcher = patch ("logging.Logger.info" )
842842 self .mock_logger_info = self .logger_info_patcher .start ()
843-
843+
844844 def tearDown (self ):
845845 patch .stopall ()
846-
846+
847847 @patch ("fhir_controller.get_supplier_permissions" )
848848 def test_create_immunization (self ,mock_get_permissions ):
849849 """it should create Immunization and return resource's location"""
@@ -997,7 +997,7 @@ def setUp(self):
997997 self .controller = FhirController (self .authorizer , self .service )
998998 self .logger_info_patcher = patch ("logging.Logger.info" )
999999 self .mock_logger_info = self .logger_info_patcher .start ()
1000-
1000+
10011001 def tearDown (self ):
10021002 patch .stopall ()
10031003
@@ -1442,7 +1442,7 @@ def test_update_immunization_for_batch_with_invalid_json(self, mock_get_supplier
14421442 self .assertEqual (response ["statusCode" ], 400 )
14431443 outcome = json .loads (response ["body" ])
14441444 self .assertEqual (outcome ["resourceType" ], "OperationOutcome" )
1445-
1445+
14461446 @patch ("fhir_controller.get_supplier_permissions" )
14471447 def test_update_immunization_when_reinstated_true (self , mock_get_permissions ):
14481448 """it should update reinstated Immunization"""
@@ -1480,7 +1480,7 @@ def test_update_immunization_missing_id(self):
14801480 }
14811481 with self .assertRaises (KeyError ):
14821482 self .controller .update_immunization (aws_event )
1483-
1483+
14841484 @patch ("fhir_controller.get_supplier_permissions" )
14851485 def test_update_reinstated_immunization_with_diagnostics_error (self , mock_get_permissions ):
14861486 """it should return 400 if patient validation error is present"""
@@ -1517,10 +1517,10 @@ def setUp(self):
15171517 self .controller = FhirController (self .authorizer , self .service )
15181518 self .logger_info_patcher = patch ("logging.Logger.info" )
15191519 self .mock_logger_info = self .logger_info_patcher .start ()
1520-
1520+
15211521 def tearDown (self ):
15221522 patch .stopall ()
1523-
1523+
15241524 def test_validate_imms_id (self ):
15251525 """it should validate lambda's Immunization id"""
15261526 invalid_id = {"pathParameters" : {"id" : "invalid %$ id" }, "headers" : {"SupplierSystem" : "Test" }}
0 commit comments