Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MohamedHamed12 committed May 15, 2024
1 parent e5b0b45 commit 0d5b7b5
Show file tree
Hide file tree
Showing 40 changed files with 3 additions and 3 deletions.
Binary file removed project/project/media/user_images/example.jpg
Binary file not shown.
Binary file removed project/project/media/user_images/example_07E2l0C.jpg
Binary file not shown.
Binary file removed project/project/media/user_images/example_0ck20Dz.jpg
Binary file not shown.
Binary file removed project/project/media/user_images/example_1id7TOz.jpg
Binary file not shown.
Binary file removed project/project/media/user_images/example_4AtyFCd.jpg
Binary file not shown.
Binary file removed project/project/media/user_images/example_4unDP8l.jpg
Binary file not shown.
Binary file removed project/project/media/user_images/example_6mRE9YH.jpg
Binary file not shown.
Binary file removed project/project/media/user_images/example_8zn8RbI.jpg
Binary file not shown.
Binary file removed project/project/media/user_images/example_CCK2p9O.jpg
Binary file not shown.
Binary file removed project/project/media/user_images/example_Cd2BTaw.jpg
Binary file not shown.
Binary file removed project/project/media/user_images/example_DJvaTRJ.jpg
Binary file not shown.
Binary file removed project/project/media/user_images/example_Glbfsif.jpg
Binary file not shown.
Binary file removed project/project/media/user_images/example_GxI0Ipj.jpg
Binary file not shown.
Binary file removed project/project/media/user_images/example_Hj0vxpR.jpg
Binary file not shown.
Binary file removed project/project/media/user_images/example_IGrpK7h.jpg
Binary file not shown.
Binary file removed project/project/media/user_images/example_KpXfq0i.jpg
Binary file not shown.
Binary file removed project/project/media/user_images/example_OXCrd0X.jpg
Binary file not shown.
Binary file removed project/project/media/user_images/example_OuLPRqR.jpg
Binary file not shown.
Binary file removed project/project/media/user_images/example_QU6wvOv.jpg
Binary file not shown.
Binary file removed project/project/media/user_images/example_QeN3ULA.jpg
Binary file not shown.
Binary file removed project/project/media/user_images/example_TiFK3CA.jpg
Binary file not shown.
Binary file removed project/project/media/user_images/example_UIZK5V3.jpg
Binary file not shown.
Binary file removed project/project/media/user_images/example_UaAJFWJ.jpg
Binary file not shown.
Binary file removed project/project/media/user_images/example_WUzTeDQ.jpg
Binary file not shown.
Binary file removed project/project/media/user_images/example_X3IZ8IX.jpg
Binary file not shown.
Binary file removed project/project/media/user_images/example_YWTQqPx.jpg
Diff not rendered.
Binary file removed project/project/media/user_images/example_YnizZXa.jpg
Diff not rendered.
Binary file removed project/project/media/user_images/example_Zlsl8cq.jpg
Diff not rendered.
Binary file removed project/project/media/user_images/example_aRLxZpU.jpg
Diff not rendered.
Binary file removed project/project/media/user_images/example_dSrdHj3.jpg
Diff not rendered.
Binary file removed project/project/media/user_images/example_gwIifAl.jpg
Diff not rendered.
Binary file removed project/project/media/user_images/example_jM5jOsT.jpg
Diff not rendered.
Binary file removed project/project/media/user_images/example_kGyzMtw.jpg
Diff not rendered.
Binary file removed project/project/media/user_images/example_lQV7DEV.jpg
Diff not rendered.
Binary file removed project/project/media/user_images/example_p3tgstM.jpg
Diff not rendered.
Binary file removed project/project/media/user_images/example_po1SGVi.jpg
Diff not rendered.
Binary file removed project/project/media/user_images/example_rYQYaes.jpg
Diff not rendered.
Binary file removed project/project/media/user_images/example_sdECB8D.jpg
Diff not rendered.
Binary file removed project/project/media/user_images/example_zxaI2D0.jpg
Diff not rendered.
6 changes: 3 additions & 3 deletions project/visit/tests/test_filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,20 @@ def setUp(self) -> None:
self.visit2 = self.create_visit(self.staff_token,patient=self.patient2['id'],start_at='2020-01-02')

def test_get_visit(self):
url='/visit/visit/?order_by=-id'
url='/visit/visit/?order_by=created_at'
response = self.client.get(url, format='json', HTTP_AUTHORIZATION='Bearer ' + self.staff_token)
self.assertEqual(response.status_code, 200)
self.assertEqual(len(response.data['results']), 2)
visit1=response.data['results'][0]
visit2=response.data['results'][1]
self.assertEqual(visit1['id'] < visit2['id'], True)
self.assertEqual(visit1['created_at'] < visit2['created_at'], True)
url='/visit/visit/?order_by=id'
response = self.client.get(url, format='json', HTTP_AUTHORIZATION='Bearer ' + self.staff_token)
self.assertEqual(response.status_code, 200)
self.assertEqual(len(response.data['results']), 2)
visit1=response.data['results'][0]
visit2=response.data['results'][1]
self.assertEqual(visit1['id'] > visit2['id'], False)
self.assertEqual(visit1['created_at'] > visit2['created_at'], False)
def test_get_visit_order_by_start_at(self):
url='/visit/visit/?order_by=start_at'
response = self.client.get(url, format='json', HTTP_AUTHORIZATION='Bearer ' + self.staff_token)
Expand Down

0 comments on commit 0d5b7b5

Please # to comment.