[pim/akonadi-e2e-tests] tests/dav: Add asserts to check on the modification time

Kevin Ottens <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 137b5afc39e65e7411db3f966a5a549a2938427b by Kevin Ottens.
Committed on 06/08/2026 at 07:57.
Pushed by ervin into branch 'master'.

Add asserts to check on the modification time

We had similar checks for IMAP but none on the DAV side. So had
something equivalent to a test to cover both resources.

M  +3    -0    tests/dav/test_server_to_resource_dav.py

https://invent.kde.org/pim/akonadi-e2e-tests/-/commit/137b5afc39e65e7411db3f966a5a549a2938427b

diff --git a/tests/dav/test_server_to_resource_dav.py b/tests/dav/test_server_to_resource_dav.py
index 9f2a4cf..0147e82 100644
--- a/tests/dav/test_server_to_resource_dav.py
+++ b/tests/dav/test_server_to_resource_dav.py
@@ -500,6 +500,9 @@ def test_akonadi_partial_offline_change_item_contents(
     updated_calendar = Calendar.from_ical(updated_payload)
     [updated_event] = updated_calendar.walk("VEVENT")
 
+    assert updated_item.revision() > item.revision()
+    assert updated_item.modificationTime() > item.modificationTime()
+
     assert field_is_equal(
         field, new_value, dav_principal.calendar(calendar.name).event_by_url(item.remoteId())
     )
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.