Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fsbraun committed Oct 30, 2024
1 parent d360e8c commit 6e5ef6f
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions tests/test_endpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,9 @@ def test_filter_with_empty_result(self):
data = response.json()

self.assertIn("results", data)
self.assertEqual(len(data["results"]), 1)
self.assertEqual(len(data["results"]), 0)
self.assertIn("pagination", data)
self.assertEqual(data["pagination"]["more"], False)
pages = data["results"][0]
self.assertEqual(pages, {})

def test_site_selector(self):
with self.login_user_context(self.get_superuser()):
Expand All @@ -100,11 +98,9 @@ def test_site_selector(self):
data = response.json()

self.assertIn("results", data)
self.assertEqual(len(data["results"]), 1)
self.assertEqual(len(data["results"]), 0)
self.assertIn("pagination", data)
self.assertEqual(data["pagination"]["more"], False)
pages = data["results"][0]
self.assertEqual(pages, {})

def test_get_reference(self):
with self.login_user_context(self.get_superuser()):
Expand Down

0 comments on commit 6e5ef6f

Please sign in to comment.