From 163fd5d3d558eed452c642248cb69dc597a5765f Mon Sep 17 00:00:00 2001 From: Lorenz Diener Date: Mon, 4 Jun 2018 16:48:20 +0200 Subject: Move pagination info to attributes --- tests/test_pagination.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') 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): account = api.account_verify_credentials() with many_statuses(api): statuses = api.account_statuses(account['id'], limit=5) - next_statuses = api.fetch_next(statuses[-1]['_pagination_next']) + next_statuses = api.fetch_next(statuses[-1]._pagination_next) assert next_statuses - previous_statuses = api.fetch_previous(next_statuses[0]['_pagination_prev']) + previous_statuses = api.fetch_previous(next_statuses[0]._pagination_prev) assert previous_statuses -- cgit v1.2.3