diff options
author | Lorenz Diener <[email protected]> | 2018-06-04 20:55:44 +0200 |
---|---|---|
committer | Lorenz Diener <[email protected]> | 2018-06-04 20:55:44 +0200 |
commit | 362767f91146271e17f7f10bd976940a1544bd5a (patch) | |
tree | 577dcbdaeb40f34e9036020f8dd916802e0950c5 /tests/test_account.py | |
parent | 0882c91cfc381d30113b50927014a1e83a76733f (diff) | |
download | mastodon.py-362767f91146271e17f7f10bd976940a1544bd5a.tar.gz |
Pinning tests
Diffstat (limited to 'tests/test_account.py')
-rw-r--r-- | tests/test_account.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/test_account.py b/tests/test_account.py index 2716ad1..3befdd5 100644 --- a/tests/test_account.py +++ b/tests/test_account.py | |||
@@ -112,3 +112,13 @@ def test_account_update_credentials_no_avatar(api): | |||
112 | header = image, | 112 | header = image, |
113 | header_mime_type = "image/jpeg") | 113 | header_mime_type = "image/jpeg") |
114 | assert account | 114 | assert account |
115 | |||
116 | @pytest.mark.vcr() | ||
117 | def test_account_pinned(status, status2, api): | ||
118 | try: | ||
119 | status = api.status_pin(status['id']) | ||
120 | pinned = api.account_statuses(api.account_verify_credentials(), pinned = True) | ||
121 | assert status in pinned | ||
122 | assert not status2 in pinned | ||
123 | finally: | ||
124 | api.status_unpin(status['id']) \ No newline at end of file | ||