diff options
Diffstat (limited to 'tests/test_pagination.py')
-rw-r--r-- | tests/test_pagination.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/test_pagination.py b/tests/test_pagination.py index 72ac06e..8a85ccb 100644 --- a/tests/test_pagination.py +++ b/tests/test_pagination.py | |||
@@ -39,9 +39,9 @@ def test_fetch_next_previous_from_pagination_info(api): | |||
39 | account = api.account_verify_credentials() | 39 | account = api.account_verify_credentials() |
40 | with many_statuses(api): | 40 | with many_statuses(api): |
41 | statuses = api.account_statuses(account['id'], limit=5) | 41 | statuses = api.account_statuses(account['id'], limit=5) |
42 | next_statuses = api.fetch_next(statuses[-1]._pagination_next) | 42 | next_statuses = api.fetch_next(statuses._pagination_next) |
43 | assert next_statuses | 43 | assert next_statuses |
44 | previous_statuses = api.fetch_previous(next_statuses[0]._pagination_prev) | 44 | previous_statuses = api.fetch_previous(next_statuses._pagination_prev) |
45 | assert previous_statuses | 45 | assert previous_statuses |
46 | 46 | ||
47 | def test_fetch_next_previous_old_pagination(api): | 47 | def test_fetch_next_previous_old_pagination(api): |
@@ -61,9 +61,9 @@ def test_fetch_next_previous_from_pagination_info_old_pagination(api): | |||
61 | 61 | ||
62 | with many_statuses(api): | 62 | with many_statuses(api): |
63 | statuses = api.account_statuses(account['id'], limit=5) | 63 | statuses = api.account_statuses(account['id'], limit=5) |
64 | next_statuses = api.fetch_next(statuses[-1]._pagination_next) | 64 | next_statuses = api.fetch_next(statuses._pagination_next) |
65 | assert next_statuses | 65 | assert next_statuses |
66 | previous_statuses = api.fetch_previous(next_statuses[0]._pagination_prev) | 66 | previous_statuses = api.fetch_previous(next_statuses._pagination_prev) |
67 | assert previous_statuses | 67 | assert previous_statuses |
68 | 68 | ||
69 | @pytest.mark.vcr() | 69 | @pytest.mark.vcr() |
@@ -86,5 +86,5 @@ def test_link_headers(api): | |||
86 | }) | 86 | }) |
87 | 87 | ||
88 | resp = api.timeline_hashtag(UNLIKELY_HASHTAG) | 88 | resp = api.timeline_hashtag(UNLIKELY_HASHTAG) |
89 | assert resp[0]._pagination_next['max_id'] == _id | 89 | assert resp._pagination_next['max_id'] == _id |
90 | assert resp[0]._pagination_prev['since_id'] == _id | 90 | assert resp._pagination_prev['since_id'] == _id |