diff options
author | Lorenz Diener <[email protected]> | 2018-07-30 21:14:40 +0200 |
---|---|---|
committer | Lorenz Diener <[email protected]> | 2018-07-30 21:14:40 +0200 |
commit | ba3c2a8605806916bf4124daa1afcea4d3a7c9b9 (patch) | |
tree | c91ed12762b3a2a0cf86b15a0afc9bafb461fd51 /tests/test_account.py | |
parent | 5148658d9ae2cbd66985a42f3cf3e90bad51553b (diff) | |
download | mastodon.py-ba3c2a8605806916bf4124daa1afcea4d3a7c9b9.tar.gz |
Add follow suggestions test
Diffstat (limited to 'tests/test_account.py')
-rw-r--r-- | tests/test_account.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/test_account.py b/tests/test_account.py index 0a2e870..71ceb66 100644 --- a/tests/test_account.py +++ b/tests/test_account.py | |||
@@ -162,3 +162,14 @@ def test_account_pinned(status, status2, api): | |||
162 | assert not status2 in pinned | 162 | assert not status2 in pinned |
163 | finally: | 163 | finally: |
164 | api.status_unpin(status['id']) | 164 | api.status_unpin(status['id']) |
165 | |||
166 | @pytest.mark.vcr() | ||
167 | def test_follow_suggestions(api): | ||
168 | suggestions = api.suggestions() | ||
169 | assert(suggestions) | ||
170 | assert(len(suggestions) > 0) | ||
171 | |||
172 | api.suggestion_delete(suggestions[0]) | ||
173 | suggestions2 = api.suggestions() | ||
174 | assert(len(suggestions2) < len(suggestions)) | ||
175 | |||