Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
jazwu committed Apr 14, 2024
1 parent 1c2d226 commit 6c554d4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Empty file removed chat/__init__.py
Empty file.
6 changes: 4 additions & 2 deletions healthScore/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -1309,10 +1309,12 @@ def setUp(self):
def test_get_patients(self):
self.client.login(email="patient@test.com", password="12345")
response = self.client.get(reverse("get_patients"))
expected_patients = list(User.objects.filter(is_patient=True).values())

self.assertEqual(response.status_code, 200)
self.assertEqual(
response.json()["patients"],
list(User.objects.filter(is_patient=True).values()),
len(response.json()["patients"]),
len(expected_patients),
)

def test_get_doctor_details(self):
Expand Down
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ asgiref==3.7.2
attrs==23.2.0
autobahn==23.6.2
Automat==22.10.0
awsebcli==3.20.10
bcrypt==4.1.2
black==24.2.0
blessed==1.20.0
Expand Down

0 comments on commit 6c554d4

Please sign in to comment.