diff --git a/tests/test_endpoint.py b/tests/test_endpoint.py index f81dab06..26f15463 100644 --- a/tests/test_endpoint.py +++ b/tests/test_endpoint.py @@ -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()): @@ -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()):