From 5148658d9ae2cbd66985a42f3cf3e90bad51553b Mon Sep 17 00:00:00 2001 From: Lorenz Diener Date: Mon, 30 Jul 2018 21:00:20 +0200 Subject: Add test for status_reply --- tests/test_status.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'tests/test_status.py') 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 @@ -6,6 +6,15 @@ def test_status(status, api): status2 = api.status(status['id']) assert status2 +@pytest.mark.vcr() +def test_status_reply(status, api2): + status2 = api2.status_reply(status, "same!") + try: + assert status2 + assert status2.mentions[0].id == status.account.id + finally: + api2.status_delete(status2['id']) + @pytest.mark.vcr() def test_status_empty(api): with pytest.raises(MastodonAPIError): -- cgit v1.2.3