File: test_domain_blocks.py

package info (click to toggle)
python-mastodon 2.1.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 22,836 kB
  • sloc: python: 9,438; makefile: 206; sql: 98; sh: 27
file content (13 lines) | stat: -rw-r--r-- 264 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
import pytest


@pytest.mark.vcr()
def test_domain_blocks(api):
    blocks = api.domain_blocks()
    assert isinstance(blocks, list)


@pytest.mark.vcr()
def test_domain_block_unblock(api):
    api.domain_block('example.com')
    api.domain_unblock('example.com')