diff --git a/care/facility/tests/test_patient_api.py b/care/facility/tests/test_patient_api.py index 86d96ade62..e81d696395 100644 --- a/care/facility/tests/test_patient_api.py +++ b/care/facility/tests/test_patient_api.py @@ -13,6 +13,7 @@ class ExpectedPatientNoteKeys(Enum): FACILITY = "facility" CREATED_BY_OBJECT = "created_by_object" CREATED_DATE = "created_date" + CREATED_BY_LOCAL_USER = "created_by_local_user" class ExpectedFacilityKeys(Enum): @@ -71,7 +72,6 @@ class ExpectedCreatedByObjectKeys(Enum): LAST_NAME = "last_name" USER_TYPE = "user_type" LAST_LOGIN = "last_login" - HOME_FACILITY = "home_facility" class PatientNotesTestCase(TestBase, TestClassMixin, APITestCase): @@ -111,6 +111,10 @@ def test_patient_notes(self): data.keys(), [item.value for item in ExpectedPatientNoteKeys] ) + created_by_local_user_content = data["created_by_local_user"] + + self.assertIsInstance(created_by_local_user_content, bool) + facility_content = data["facility"] if facility_content is not None: