aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_status.py')
-rw-r--r--tests/test_status.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/test_status.py b/tests/test_status.py
index ab8540f..b177517 100644
--- a/tests/test_status.py
+++ b/tests/test_status.py
@@ -5,7 +5,12 @@ from time import sleep
5@pytest.mark.vcr() 5@pytest.mark.vcr()
6def test_status(status, api): 6def test_status(status, api):
7 status2 = api.status(status['id']) 7 status2 = api.status(status['id'])
8 assert status2 == status 8 assert status2
9
10@pytest.mark.vcr()
11def test_status_empty(api):
12 with pytest.raises(MastodonAPIError):
13 api.status_post('')
9 14
10@pytest.mark.vcr() 15@pytest.mark.vcr()
11def test_status_missing(api): 16def test_status_missing(api):
@@ -45,7 +50,7 @@ def test_toot(api):
45 50
46@pytest.mark.vcr() 51@pytest.mark.vcr()
47@pytest.mark.parametrize('visibility', ('', 'direct', 'private', 'unlisted', 'public', 52@pytest.mark.parametrize('visibility', ('', 'direct', 'private', 'unlisted', 'public',
48 pytest.param('foobar', marks=pytest.mark.xfail()))) 53 pytest.param('foobar', marks=pytest.mark.xfail(strict=True))))
49@pytest.mark.parametrize('spoiler_text', (None, 'Content warning')) 54@pytest.mark.parametrize('spoiler_text', (None, 'Content warning'))
50def test_status_post(api, visibility, spoiler_text): 55def test_status_post(api, visibility, spoiler_text):
51 status = api.status_post( 56 status = api.status_post(
Powered by cgit v1.2.3 (git 2.41.0)