Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
submarcos committed Feb 6, 2024
1 parent 1aa9dd1 commit c4f9f90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions project/geosource/tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,12 +365,12 @@ def test_ordering_filtering_search(self):
self.assertEqual(data[0]["name"], obj.name)

# Test ordering by polymorphic_ctype__model asc
response = self.client.get(list_url, {"ordering": "polymorphic_ctype__model"})
response = self.client.get(list_url, {"ordering": "source_type"})
data = response.json()["results"]
self.assertEqual(data[0]["name"], obj2.name)

# Test ordering by polymorphic_ctype__model desc
response = self.client.get(list_url, {"ordering": "-polymorphic_ctype__model"})
response = self.client.get(list_url, {"ordering": "-source_type"})
data = response.json()["results"]
self.assertEqual(data[-1]["name"], obj2.name)

Expand Down

0 comments on commit c4f9f90

Please sign in to comment.