aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_follow_requests.py')
-rw-r--r--tests/test_follow_requests.py24
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/test_follow_requests.py b/tests/test_follow_requests.py
new file mode 100644
index 0000000..67626f7
--- /dev/null
+++ b/tests/test_follow_requests.py
@@ -0,0 +1,24 @@
1import pytest
2
3@pytest.mark.vcr()
4def test_follow_requests(api):
5 reqs = api.follow_requests()
6 assert isinstance(reqs, list)
7
8
9# warning: these two send emails, which open in letter opener by default
10# so if you are re-recording a cassette for either of these mastodon will
11# probably open a browser window for you, which you can safely close
12@pytest.mark.vcr()
13def test_follow_request_authorize(api, api2):
14 api2.account_follow(1234567890123456)
15 api.follow_request_authorize(1)
16 api2.account_unfollow(1234567890123456)
17
18
19@pytest.mark.vcr()
20def test_follow_request_reject(api, api2):
21 api2.account_follow(1234567890123456)
22 api.follow_request_reject(1)
23
24
Powered by cgit v1.2.3 (git 2.41.0)