diff options
author | Lorenz Diener <[email protected]> | 2017-11-30 16:02:52 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2017-11-30 16:02:52 +0100 |
commit | 7e3a4a17a28f52b186e6453a0d1f43614f110b4b (patch) | |
tree | 48aafcc35397205d52613cc305dc6baff1cbbda1 /tests/test_follow_requests.py | |
parent | c6f1196ddc1899e64d60b102e1cfa1c1c1321e77 (diff) | |
parent | d87ada3d73de69ba371acaeca55751e2410c3786 (diff) | |
download | mastodon.py-7e3a4a17a28f52b186e6453a0d1f43614f110b4b.tar.gz |
Merge pull request #113 from codl/more-tests
More tests!
Diffstat (limited to 'tests/test_follow_requests.py')
-rw-r--r-- | tests/test_follow_requests.py | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/test_follow_requests.py b/tests/test_follow_requests.py new file mode 100644 index 0000000..ccf7939 --- /dev/null +++ b/tests/test_follow_requests.py | |||
@@ -0,0 +1,21 @@ | |||
1 | import pytest | ||
2 | |||
3 | @pytest.mark.vcr() | ||
4 | def test_follow_requests(api): | ||
5 | reqs = api.follow_requests() | ||
6 | assert isinstance(reqs, list) | ||
7 | |||
8 | |||
9 | @pytest.mark.vcr() | ||
10 | def test_follow_request_authorize(api, api2): | ||
11 | api2.account_follow(1234567890123456) | ||
12 | api.follow_request_authorize(1) | ||
13 | api2.account_unfollow(1234567890123456) | ||
14 | |||
15 | |||
16 | @pytest.mark.vcr() | ||
17 | def test_follow_request_reject(api, api2): | ||
18 | api2.account_follow(1234567890123456) | ||
19 | api.follow_request_reject(1) | ||
20 | |||
21 | |||