diff options
author | halcy <halcy@ARARAGI-KUN> | 2022-11-27 23:38:42 +0200 |
---|---|---|
committer | halcy <halcy@ARARAGI-KUN> | 2022-11-27 23:38:42 +0200 |
commit | b35e3f3da8dee548acedb12cb1883569f03de793 (patch) | |
tree | 0ac1235089229d5c6c2bcb3c5dfcc3c365ebd389 /tests/test_account.py | |
parent | ee9a3c9c5e954453f493c8173c54ec3834ccb18d (diff) | |
download | mastodon.py-b35e3f3da8dee548acedb12cb1883569f03de793.tar.gz |
Add account_familiar_followers
Diffstat (limited to 'tests/test_account.py')
-rw-r--r-- | tests/test_account.py | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/tests/test_account.py b/tests/test_account.py index be48646..184e346 100644 --- a/tests/test_account.py +++ b/tests/test_account.py | |||
@@ -290,4 +290,18 @@ def test_account_lookup(api, api3): | |||
290 | except: | 290 | except: |
291 | pass | 291 | pass |
292 | assert(api.account_lookup("mastodonpy_test").id == id) | 292 | assert(api.account_lookup("mastodonpy_test").id == id) |
293 | assert(api.account_lookup("mastodonpy_test@localhost:3000").id == id) \ No newline at end of file | 293 | assert(api.account_lookup("mastodonpy_test@localhost:3000").id == id) |
294 | |||
295 | @pytest.mark.vcr() | ||
296 | def test_account_familiar_followers(api, api2, api3): | ||
297 | followers_list = api.account_familiar_followers(api2.me()) | ||
298 | assert followers_list | ||
299 | assert len(followers_list) == 1 | ||
300 | assert followers_list[0].id == api2.me().id | ||
301 | assert "accounts" in followers_list[0] | ||
302 | |||
303 | followers_list = api.account_familiar_followers([api2.me(), api3.me()]) | ||
304 | assert followers_list | ||
305 | assert len(followers_list) == 2 | ||
306 | assert followers_list[0].id == api2.me().id | ||
307 | assert followers_list[1].id == api3.me().id | ||