diff options
author | halcy <halcy@ARARAGI-KUN> | 2022-11-13 15:33:10 +0200 |
---|---|---|
committer | halcy <halcy@ARARAGI-KUN> | 2022-11-13 15:33:10 +0200 |
commit | b1e1ec7bdc9e84ecd31626f1a4fbf645e84d0bb2 (patch) | |
tree | 3ecf530456b311057658b3b2e749ad017074455b /tests/test_follow_requests.py | |
parent | a17b20cfa142469019cd5982ba200510afc1f884 (diff) | |
download | mastodon.py-b1e1ec7bdc9e84ecd31626f1a4fbf645e84d0bb2.tar.gz |
Add support for timed mutes, fix tests to actually pass with new setup
Diffstat (limited to 'tests/test_follow_requests.py')
-rw-r--r-- | tests/test_follow_requests.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/test_follow_requests.py b/tests/test_follow_requests.py index 01e53b5..7c2ab38 100644 --- a/tests/test_follow_requests.py +++ b/tests/test_follow_requests.py | |||
@@ -9,16 +9,17 @@ def test_follow_requests(api): | |||
9 | 9 | ||
10 | @pytest.mark.vcr() | 10 | @pytest.mark.vcr() |
11 | def test_follow_request_authorize(api, api2): | 11 | def test_follow_request_authorize(api, api2): |
12 | api2.account_follow(1234567890123456) | 12 | api_id = api.account_verify_credentials() |
13 | api2.account_follow(api_id) | ||
13 | time.sleep(2) | 14 | time.sleep(2) |
14 | request = api.follow_requests()[0] | 15 | request = api.follow_requests()[0] |
15 | api.follow_request_authorize(request) | 16 | api.follow_request_authorize(request) |
16 | api2.account_unfollow(1234567890123456) | 17 | api2.account_unfollow(api_id) |
17 | 18 | ||
18 | 19 | ||
19 | @pytest.mark.vcr() | 20 | @pytest.mark.vcr() |
20 | def test_follow_request_reject(api, api2): | 21 | def test_follow_request_reject(api, api2): |
21 | api2.account_follow(1234567890123456) | 22 | api2.account_follow(api.account_verify_credentials()) |
22 | time.sleep(2) | 23 | time.sleep(2) |
23 | request = api.follow_requests()[0] | 24 | request = api.follow_requests()[0] |
24 | api.follow_request_reject(request) | 25 | api.follow_request_reject(request) |