diff options
author | halcy <halcy@ARARAGI-KUN> | 2022-11-27 23:55:26 +0200 |
---|---|---|
committer | halcy <halcy@ARARAGI-KUN> | 2022-11-27 23:55:26 +0200 |
commit | ae9f7640878e3f402b4f8784cecadf5aab0d5d7c (patch) | |
tree | 59f0843b89db150adbe5eb57b2a79b55c6251a57 /tests/test_account.py | |
parent | b35e3f3da8dee548acedb12cb1883569f03de793 (diff) | |
download | mastodon.py-ae9f7640878e3f402b4f8784cecadf5aab0d5d7c.tar.gz |
Add remove_from_followers
Diffstat (limited to 'tests/test_account.py')
-rw-r--r-- | tests/test_account.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/test_account.py b/tests/test_account.py index 184e346..afc2122 100644 --- a/tests/test_account.py +++ b/tests/test_account.py | |||
@@ -33,7 +33,6 @@ def test_account_relationships(api): | |||
33 | assert isinstance(relationships, list) | 33 | assert isinstance(relationships, list) |
34 | assert len(relationships) == 1 | 34 | assert len(relationships) == 1 |
35 | 35 | ||
36 | |||
37 | @pytest.mark.vcr() | 36 | @pytest.mark.vcr() |
38 | def test_account_search(api): | 37 | def test_account_search(api): |
39 | results = api.account_search('admin') | 38 | results = api.account_search('admin') |
@@ -305,3 +304,10 @@ def test_account_familiar_followers(api, api2, api3): | |||
305 | assert len(followers_list) == 2 | 304 | assert len(followers_list) == 2 |
306 | assert followers_list[0].id == api2.me().id | 305 | assert followers_list[0].id == api2.me().id |
307 | assert followers_list[1].id == api3.me().id | 306 | assert followers_list[1].id == api3.me().id |
307 | |||
308 | @pytest.mark.vcr() | ||
309 | def test_account_remove_from_followers(api, api2): | ||
310 | api.account_follow(api2.me()) | ||
311 | assert api.account_relationships(api2.me())[0].following == True | ||
312 | api2.account_remove_from_followers(api.me()) | ||
313 | assert api.account_relationships(api2.me())[0].following == False \ No newline at end of file | ||