diff options
author | Lorenz Diener <[email protected]> | 2017-11-30 16:02:29 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2017-11-30 16:02:29 +0100 |
commit | c6f1196ddc1899e64d60b102e1cfa1c1c1321e77 (patch) | |
tree | 107718e14050a9f6e5046157375fe7fae5c5409d /tests/test_status.py | |
parent | f52c8f5024f4383fbcc645e54d2cbda5038ebd2c (diff) | |
parent | 050077e97a78008a2264e5497871cb06c00e948a (diff) | |
download | mastodon.py-c6f1196ddc1899e64d60b102e1cfa1c1c1321e77.tar.gz |
Merge pull request #112 from codl/fix-111
fix #111
Diffstat (limited to 'tests/test_status.py')
-rw-r--r-- | tests/test_status.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/test_status.py b/tests/test_status.py index a3945fb..3106981 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() |
6 | def test_status(status, api): | 6 | def 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() | ||
11 | def test_status_empty(api): | ||
12 | with pytest.raises(MastodonAPIError): | ||
13 | api.status_post('') | ||
9 | 14 | ||
10 | @pytest.mark.vcr() | 15 | @pytest.mark.vcr() |
11 | def test_status_missing(api): | 16 | def test_status_missing(api): |