From f3d25fa19deb2caf0793d685a542509f94c2c8a9 Mon Sep 17 00:00:00 2001 From: halcy Date: Tue, 22 Nov 2022 00:10:02 +0200 Subject: add status editing --- tests/test_status.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'tests/test_status.py') 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): if text in status.content: found_status = True assert found_status + +@pytest.mark.vcr() +def test_status_edit(api, api2): + status = api.status_post("the best editor? why, of course it is VS Code") + edit_list_1 = api2.status_history(status) + status_edited = api.status_update(status, "the best editor? why, of course it is the KDE Advanced Text Editor, Kate") + status_result = api2.status(status) + edit_list_2 = api2.status_history(status) + + assert len(edit_list_1) == 0 + assert len(edit_list_2) == 2 + assert "the best editor? why, of course it is the KDE Advanced Text Editor, Kate" in status_result.content + + source = api2.status_source(status) + assert source.text == "the best editor? why, of course it is the KDE Advanced Text Editor, Kate" + \ No newline at end of file -- cgit v1.2.3