Mastodonplus.py/tests/test_follow_requests.py

22 líneas
462 B
Python
Original Vista normal Històric

2017-11-30 01:54:52 +01:00
import pytest
@pytest.mark.vcr()
def test_follow_requests(api):
reqs = api.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)
@pytest.mark.vcr()
def test_follow_request_reject(api, api2):
api2.account_follow(1234567890123456)
api.follow_request_reject(1)