aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcodl <[email protected]>2017-11-30 01:29:20 +0100
committercodl <[email protected]>2017-11-30 01:29:20 +0100
commit2b4008981055f990c23bf42bb65f856231436422 (patch)
tree6638583244b7e8b288655bc7f74f4147a5e8d655 /tests/test_domain_blocks.py
parentf9a52029fc6d399c8fcd85a50060e0f5773da78e (diff)
downloadmastodon.py-2b4008981055f990c23bf42bb65f856231436422.tar.gz
add tests for domain block methods
Diffstat (limited to 'tests/test_domain_blocks.py')
-rw-r--r--tests/test_domain_blocks.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/test_domain_blocks.py b/tests/test_domain_blocks.py
new file mode 100644
index 0000000..c96f7d6
--- /dev/null
+++ b/tests/test_domain_blocks.py
@@ -0,0 +1,13 @@
1import pytest
2
3
4@pytest.mark.vcr()
5def test_domain_blocks(api):
6 blocks = api.domain_blocks()
7 assert isinstance(blocks, list)
8
9
10@pytest.mark.vcr()
11def test_domain_block_unblock(api):
12 api.domain_block('example.com')
13 api.domain_unblock('example.com')
Powered by cgit v1.2.3 (git 2.41.0)