diff options
Diffstat (limited to 'tests/test_follow_requests.py')
-rw-r--r-- | tests/test_follow_requests.py | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/tests/test_follow_requests.py b/tests/test_follow_requests.py index ccf7939..e84ff6d 100644 --- a/tests/test_follow_requests.py +++ b/tests/test_follow_requests.py | |||
@@ -1,21 +1,26 @@ | |||
1 | import pytest | 1 | import pytest |
2 | import time | ||
2 | 3 | ||
3 | @pytest.mark.vcr() | 4 | @pytest.mark.vcr() |
4 | def test_follow_requests(api): | 5 | def test_follow_requests(api3): |
5 | reqs = api.follow_requests() | 6 | reqs = api3.follow_requests() |
6 | assert isinstance(reqs, list) | 7 | assert isinstance(reqs, list) |
7 | 8 | ||
8 | 9 | ||
9 | @pytest.mark.vcr() | 10 | @pytest.mark.vcr() |
10 | def test_follow_request_authorize(api, api2): | 11 | def test_follow_request_authorize(api3, api2): |
11 | api2.account_follow(1234567890123456) | 12 | api2.account_follow(1234567890123457) |
12 | api.follow_request_authorize(1) | 13 | time.sleep(2) |
13 | api2.account_unfollow(1234567890123456) | 14 | request = api3.follow_requests()[0] |
15 | api3.follow_request_authorize(request) | ||
16 | api2.account_unfollow(1234567890123457) | ||
14 | 17 | ||
15 | 18 | ||
16 | @pytest.mark.vcr() | 19 | @pytest.mark.vcr() |
17 | def test_follow_request_reject(api, api2): | 20 | def test_follow_request_reject(api3, api2): |
18 | api2.account_follow(1234567890123456) | 21 | api2.account_follow(1234567890123457) |
19 | api.follow_request_reject(1) | 22 | time.sleep(2) |
23 | request = api3.follow_requests()[0] | ||
24 | api3.follow_request_reject(request) | ||
20 | 25 | ||
21 | 26 | ||