From 225c8ca76a8fc6eb2a87a8156b7ce808d3b06507 Mon Sep 17 00:00:00 2001 From: Lorenz Diener Date: Sat, 22 Jun 2019 23:16:47 +0200 Subject: Fresh batch of test runs --- tests/test_follow_requests.py | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) (limited to 'tests/test_follow_requests.py') 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 @@ import pytest +import time @pytest.mark.vcr() -def test_follow_requests(api): - reqs = api.follow_requests() +def test_follow_requests(api3): + reqs = api3.follow_requests() assert isinstance(reqs, list) @pytest.mark.vcr() -def test_follow_request_authorize(api, api2): - api2.account_follow(1234567890123456) - api.follow_request_authorize(1) - api2.account_unfollow(1234567890123456) +def test_follow_request_authorize(api3, api2): + api2.account_follow(1234567890123457) + time.sleep(2) + request = api3.follow_requests()[0] + api3.follow_request_authorize(request) + api2.account_unfollow(1234567890123457) @pytest.mark.vcr() -def test_follow_request_reject(api, api2): - api2.account_follow(1234567890123456) - api.follow_request_reject(1) +def test_follow_request_reject(api3, api2): + api2.account_follow(1234567890123457) + time.sleep(2) + request = api3.follow_requests()[0] + api3.follow_request_reject(request) -- cgit v1.2.3