Skip to content

Commit

Permalink
Add more variance to multipage testdata
Browse files Browse the repository at this point in the history
  • Loading branch information
iamkubi committed Sep 25, 2022
1 parent 71dda20 commit 272df0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/base/responses_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
MULTIPAGE_TEST_DATA = [
{'data': ['thing1', 'thing2'], 'meta': TEST_META},
{'data': ['thing3', 'thing4'], 'meta': TEST_META},
{'data': ['thing84', 'thing97'], 'meta': TEST_META},
{'data': ['thing84', 'thing97', 'fdas', 'pepperoni'], 'meta': TEST_META},
{'data': ['one', 'two', 'three', 4, 5, '6'], 'meta': TEST_META},
{'data': ['lkjskljd'], 'meta': TEST_META},
]
Expand Down Expand Up @@ -114,6 +114,6 @@ def test_paginated_response_has_correct_number_of_items(self):
MULTIPAGE_TEST_DATA[0])
expected = [item for data in MULTIPAGE_TEST_DATA for item in
data['data']]
expected_count = 13
expected_count = 15
self.assertEqual(expected_count, len(expected))
self.assertEqual(expected_count, len(response.collect()))

0 comments on commit 272df0c

Please sign in to comment.