aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhalcy <halcy@ARARAGI-KUN>2022-11-13 15:33:10 +0200
committerhalcy <halcy@ARARAGI-KUN>2022-11-13 15:33:10 +0200
commitb1e1ec7bdc9e84ecd31626f1a4fbf645e84d0bb2 (patch)
tree3ecf530456b311057658b3b2e749ad017074455b /tests/test_follow_requests.py
parenta17b20cfa142469019cd5982ba200510afc1f884 (diff)
downloadmastodon.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.py7
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()
11def test_follow_request_authorize(api, api2): 11def 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()
20def test_follow_request_reject(api, api2): 21def 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)
Powered by cgit v1.2.3 (git 2.41.0)