2017-11-30 01:54:52 +01:00
|
|
|
import pytest
|
2019-06-22 23:16:47 +02:00
|
|
|
import time
|
2017-11-30 01:54:52 +01:00
|
|
|
|
|
|
|
@pytest.mark.vcr()
|
2019-06-22 23:16:47 +02:00
|
|
|
def test_follow_requests(api3):
|
|
|
|
reqs = api3.follow_requests()
|
2017-11-30 01:54:52 +01:00
|
|
|
assert isinstance(reqs, list)
|
|
|
|
|
|
|
|
|
|
|
|
@pytest.mark.vcr()
|
2019-06-22 23:16:47 +02:00
|
|
|
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)
|
2017-11-30 01:54:52 +01:00
|
|
|
|
|
|
|
|
|
|
|
@pytest.mark.vcr()
|
2019-06-22 23:16:47 +02:00
|
|
|
def test_follow_request_reject(api3, api2):
|
|
|
|
api2.account_follow(1234567890123457)
|
|
|
|
time.sleep(2)
|
|
|
|
request = api3.follow_requests()[0]
|
|
|
|
api3.follow_request_reject(request)
|
2017-11-30 01:54:52 +01:00
|
|
|
|
|
|
|
|