From 4d99e9316ea02ded025eee99fb963290218e52d2 Mon Sep 17 00:00:00 2001 From: codl Date: Wed, 29 Nov 2017 22:03:51 +0100 Subject: add failing test case for #111 --- tests/test_status.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'tests/test_status.py') diff --git a/tests/test_status.py b/tests/test_status.py index a5b8b3a..0e891bb 100644 --- a/tests/test_status.py +++ b/tests/test_status.py @@ -5,7 +5,12 @@ from time import sleep @pytest.mark.vcr() def test_status(status, api): status2 = api.status(status['id']) - assert status2 == status + assert status2 + +@pytest.mark.vcr() +def test_status_empty(api): + with pytest.raises(MastodonAPIError): + api.status_post('') @pytest.mark.vcr() def test_status_missing(api): -- cgit v1.2.3