From e3936649745a627fa2c31fc7b8602793b7d6027b Mon Sep 17 00:00:00 2001 From: Lorenz Diener Date: Sat, 27 Apr 2019 21:04:06 +0200 Subject: Test fixups and small 2.8 fixes Pagination backwards is broken presently. --- tests/test_account.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'tests/test_account.py') diff --git a/tests/test_account.py b/tests/test_account.py index 71ceb66..77a8f48 100644 --- a/tests/test_account.py +++ b/tests/test_account.py @@ -164,12 +164,14 @@ def test_account_pinned(status, status2, api): api.status_unpin(status['id']) @pytest.mark.vcr() -def test_follow_suggestions(api): - suggestions = api.suggestions() +def test_follow_suggestions(api2, status): + api2.status_favourite(status) + + suggestions = api2.suggestions() assert(suggestions) assert(len(suggestions) > 0) - api.suggestion_delete(suggestions[0]) - suggestions2 = api.suggestions() + api2.suggestion_delete(suggestions[0]) + suggestions2 = api2.suggestions() assert(len(suggestions2) < len(suggestions)) -- cgit v1.2.3