Daniel Brötzmann pushed to branch gtk4 at gajim / gajim


Commits:
cbea874b by wurstsalat at 2024-10-28T22:41:04+01:00
refactor: Improve StartChat test

- - - - -


1 changed file:

- test/gtk/test_start_chat.py


Changes:

=====================================
test/gtk/test_start_chat.py
=====================================
@@ -107,16 +107,20 @@ class TestClient:
     def __init__(self, account: str) -> None:
         self._account = account
 
+        self._contacts_module = TestContactsModule(self._account)
+        self._bookmarks_module = TestBookmarksModule(self._account)
+        self._roster_module = TestRosterModule(self._account)
+
     def get_own_jid(self) -> JID:
         return JID.from_string(self._account)
 
     def get_module(self, module: str) -> Any:
         if module == 'Contacts':
-            return TestContactsModule(self._account)
+            return self._contacts_module
         if module == 'Bookmarks':
-            return TestBookmarksModule(self._account)
+            return self._bookmarks_module
         if module == 'Roster':
-            return TestRosterModule(self._account)
+            return self._roster_module
         return MagicMock()
 
 



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/cbea874b497e71e1d7974bc919bc654643cff153

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/cbea874b497e71e1d7974bc919bc654643cff153
You're receiving this email because of your account on dev.gajim.org.


_______________________________________________
Commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to