aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLorenz Diener <[email protected]>2018-06-04 16:48:20 +0200
committerLorenz Diener <[email protected]>2018-06-04 16:48:20 +0200
commit163fd5d3d558eed452c642248cb69dc597a5765f (patch)
tree3f1e416fd46d86608565e0c87ab2730179b1e3ff /tests
parent093c207292f221a426a04181f6d158cba14bbe8a (diff)
downloadmastodon.py-163fd5d3d558eed452c642248cb69dc597a5765f.tar.gz
Move pagination info to attributes
Diffstat (limited to 'tests')
-rw-r--r--tests/test_pagination.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_pagination.py b/tests/test_pagination.py
index 44fafa1..599b2f4 100644
--- a/tests/test_pagination.py
+++ b/tests/test_pagination.py
@@ -31,9 +31,9 @@ def test_fetch_next_previous_from_pagination_info(api):
31 account = api.account_verify_credentials() 31 account = api.account_verify_credentials()
32 with many_statuses(api): 32 with many_statuses(api):
33 statuses = api.account_statuses(account['id'], limit=5) 33 statuses = api.account_statuses(account['id'], limit=5)
34 next_statuses = api.fetch_next(statuses[-1]['_pagination_next']) 34 next_statuses = api.fetch_next(statuses[-1]._pagination_next)
35 assert next_statuses 35 assert next_statuses
36 previous_statuses = api.fetch_previous(next_statuses[0]['_pagination_prev']) 36 previous_statuses = api.fetch_previous(next_statuses[0]._pagination_prev)
37 assert previous_statuses 37 assert previous_statuses
38 38
39 39
Powered by cgit v1.2.3 (git 2.41.0)