Skip to content

Commit

Permalink
Add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rithviknishad committed Sep 13, 2024
1 parent fa03882 commit ff3c875
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions care/facility/tests/test_patient_daily_rounds_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,3 +126,21 @@ def test_doctors_log_update(self):
data={**self.log_update, "rounds_type": "DOCTORS_LOG"},
)
self.assertEqual(response.status_code, status.HTTP_201_CREATED)

def test_community_nurses_log_update(self):
response = self.client.post(
f"/api/v1/consultation/{self.consultation_with_bed.external_id}/daily_rounds/",
data={
**self.log_update,
"rounds_type": "COMMUNITY_NURSES_LOG",
"bowel_difficulty": "NO_DIFFICULTY",
"bladder_drainage": "CONDOM_CATHETER",
"bladder_issue": "NO_ISSUES",
"urination_frequency": "DECREASED",
"sleep": "SATISFACTORY",
"nutrition_route": "ORAL",
"oral_issue": "NO_ISSUE",
"appetite": "INCREASED",
},
)
self.assertEqual(response.status_code, status.HTTP_201_CREATED)

0 comments on commit ff3c875

Please sign in to comment.