[pim/akonadi-e2e-tests] src/akonadi: Fix iTIP tests by using the new ITIPHandler interface

Dominique MICHEL <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit dd8c1619dabcfb450d10f878550f1070c48cfcbc by Dominique  MICHEL, on behalf of Dominique MICHEL.
Committed on 10/08/2026 at 16:00.
Pushed by aloeil into branch 'master'.

Fix iTIP tests by using the new ITIPHandler interface

ITIPHandler's processITIPMessage method changed, thus breaking the
tests. This commit uses the new interface.

M  +6    -1    src/akonadi/itip_handler.py

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

diff --git a/src/akonadi/itip_handler.py b/src/akonadi/itip_handler.py
index 69eb802..5242c7b 100644
--- a/src/akonadi/itip_handler.py
+++ b/src/akonadi/itip_handler.py
@@ -5,6 +5,8 @@
 from logging import getLogger
 
 from AkonadiCalendar import Akonadi as AkonadiCal  # type: ignore
+from KCalendarCore import KCalendarCore  # type: ignore
+from PySide6.QtCore import QTimeZone  # type: ignore
 
 from src.itip.const import ITIPAction
 from src.itip.utils import ITIPUtils
@@ -20,4 +22,7 @@ class ITIPHandler:
         self.handler.setShowDialogsOnError(False)
 
     def process_message(self, receiver: str, ical: str, action: ITIPAction) -> None:
-        ITIPUtils.itip_process_message(self.handler, receiver, ical, action)
+        calendar = KCalendarCore.MemoryCalendar(QTimeZone.systemTimeZone())
+        format = KCalendarCore.ICalFormat()
+        message = format.parseScheduleMessage(KCalendarCore.CalendarPtr(calendar), ical)
+        ITIPUtils.itip_process_message(self.handler, receiver, message, action)
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.