diff options
author | Lorenz Diener <[email protected]> | 2019-04-27 21:04:06 +0200 |
---|---|---|
committer | Lorenz Diener <[email protected]> | 2019-04-27 21:04:06 +0200 |
commit | e3936649745a627fa2c31fc7b8602793b7d6027b (patch) | |
tree | c478eb7f45acbfe63faec6151a23658dfc0da3e6 /tests/test_account.py | |
parent | c1418e9f3f37319d5142e0fa058e2eab434c4e5d (diff) | |
download | mastodon.py-e3936649745a627fa2c31fc7b8602793b7d6027b.tar.gz |
Test fixups and small 2.8 fixes
Pagination backwards is broken presently.
Diffstat (limited to 'tests/test_account.py')
-rw-r--r-- | tests/test_account.py | 10 |
1 files changed, 6 insertions, 4 deletions
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): | |||
164 | api.status_unpin(status['id']) | 164 | api.status_unpin(status['id']) |
165 | 165 | ||
166 | @pytest.mark.vcr() | 166 | @pytest.mark.vcr() |
167 | def test_follow_suggestions(api): | 167 | def test_follow_suggestions(api2, status): |
168 | suggestions = api.suggestions() | 168 | api2.status_favourite(status) |
169 | |||
170 | suggestions = api2.suggestions() | ||
169 | assert(suggestions) | 171 | assert(suggestions) |
170 | assert(len(suggestions) > 0) | 172 | assert(len(suggestions) > 0) |
171 | 173 | ||
172 | api.suggestion_delete(suggestions[0]) | 174 | api2.suggestion_delete(suggestions[0]) |
173 | suggestions2 = api.suggestions() | 175 | suggestions2 = api2.suggestions() |
174 | assert(len(suggestions2) < len(suggestions)) | 176 | assert(len(suggestions2) < len(suggestions)) |
175 | 177 | ||