aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLorenz Diener <[email protected]>2018-07-30 21:00:20 +0200
committerLorenz Diener <[email protected]>2018-07-30 21:00:20 +0200
commit5148658d9ae2cbd66985a42f3cf3e90bad51553b (patch)
tree0d504c8d4799555914b66cd6fcf9da5266468c7f /tests/test_status.py
parent2af3fd82f4194c4b089ae06d982525c52e3ae00e (diff)
downloadmastodon.py-5148658d9ae2cbd66985a42f3cf3e90bad51553b.tar.gz
Add test for status_reply
Diffstat (limited to 'tests/test_status.py')
-rw-r--r--tests/test_status.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/test_status.py b/tests/test_status.py
index d36c000..ad861ea 100644
--- a/tests/test_status.py
+++ b/tests/test_status.py
@@ -7,6 +7,15 @@ def test_status(status, api):
7 assert status2 7 assert status2
8 8
9@pytest.mark.vcr() 9@pytest.mark.vcr()
10def test_status_reply(status, api2):
11 status2 = api2.status_reply(status, "same!")
12 try:
13 assert status2
14 assert status2.mentions[0].id == status.account.id
15 finally:
16 api2.status_delete(status2['id'])
17
18@pytest.mark.vcr()
10def test_status_empty(api): 19def test_status_empty(api):
11 with pytest.raises(MastodonAPIError): 20 with pytest.raises(MastodonAPIError):
12 api.status_post('') 21 api.status_post('')
Powered by cgit v1.2.3 (git 2.41.0)