aboutsummaryrefslogtreecommitdiff
blob: e84ff6dd2a21a3d95864a72e05dffc75063912a0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import pytest
import time

@pytest.mark.vcr()
def test_follow_requests(api3):
    reqs = api3.follow_requests()
    assert isinstance(reqs, list)


@pytest.mark.vcr()
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(api3, api2):
    api2.account_follow(1234567890123457)
    time.sleep(2)
    request = api3.follow_requests()[0]    
    api3.follow_request_reject(request)
Powered by cgit v1.2.3 (git 2.41.0)