Skip to content

Commit

Permalink
fix test filter gte
Browse files Browse the repository at this point in the history
  • Loading branch information
MohamedHamed12 committed May 12, 2024
1 parent 98127a6 commit 4f0959c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion project/visit/tests/test_filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def test_get_visit_order_by_start_at(self):
self.assertEqual(visit1['start_at'] > visit2['start_at'], False)

def test_get_visit_start_at_gte(self):
url='/visit/visit/?start_at_gte=2020-01-02'
url='/visit/visit/?start_at__gte=2020-01-02'
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']), 1)

0 comments on commit 4f0959c

Please # to comment.