Skip to content

Commit

Permalink
updated tests for patient note
Browse files Browse the repository at this point in the history
  • Loading branch information
Bhavik-ag committed Jul 17, 2023
1 parent fb8424f commit ab3bd78
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion care/facility/tests/test_patient_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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):
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit ab3bd78

Please sign in to comment.