Skip to content

Commit 22fb4ed

Browse files
committed
remove test for attribute error
1 parent 1c92884 commit 22fb4ed

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

lambdas/mns_publisher/tests/test_create_notification.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -360,15 +360,6 @@ def test_get_practitioner_pds_exception(self, mock_logger, mock_pds_get):
360360

361361
self.assertEqual(str(context.exception), "PDS API error")
362362

363-
@patch("create_notification.pds_get_patient_details")
364-
@patch("create_notification.logger")
365-
def test_get_practitioner_patient_details_none(self, mock_logger, mock_pds_get):
366-
"""Test when pds_get_patient_details returns None."""
367-
mock_pds_get.return_value = None
368-
369-
with self.assertRaises(AttributeError):
370-
get_practitioner_details_from_pds("9481152782")
371-
372363

373364
if __name__ == "__main__":
374365
unittest.main()

0 commit comments

Comments
 (0)