aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_status.py')
-rw-r--r--tests/test_status.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/test_status.py b/tests/test_status.py
index 20e32f2..e747571 100644
--- a/tests/test_status.py
+++ b/tests/test_status.py
@@ -213,3 +213,19 @@ def test_scheduled_status_long_part2(api):
213 if text in status.content: 213 if text in status.content:
214 found_status = True 214 found_status = True
215 assert found_status 215 assert found_status
216
217@pytest.mark.vcr()
218def test_status_edit(api, api2):
219 status = api.status_post("the best editor? why, of course it is VS Code")
220 edit_list_1 = api2.status_history(status)
221 status_edited = api.status_update(status, "the best editor? why, of course it is the KDE Advanced Text Editor, Kate")
222 status_result = api2.status(status)
223 edit_list_2 = api2.status_history(status)
224
225 assert len(edit_list_1) == 0
226 assert len(edit_list_2) == 2
227 assert "the best editor? why, of course it is the KDE Advanced Text Editor, Kate" in status_result.content
228
229 source = api2.status_source(status)
230 assert source.text == "the best editor? why, of course it is the KDE Advanced Text Editor, Kate"
231 \ No newline at end of file
Powered by cgit v1.2.3 (git 2.41.0)