[pim/akonadi-e2e-tests] /: Have the IMAP and DAV servers be instancied per module
Kevin Ottens <[email protected]>
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit d1bf7698b864008c2b92d6fcb2f71c2ee93d010b by Kevin Ottens.
Committed on 30/07/2026 at 12:15.
Pushed by ervin into branch 'master'.
Have the IMAP and DAV servers be instancied per module
This way we start different servers per test module which reduces
chances of tests interacting with each other. It means more containers
are spawned of course.
M +3 -3 conftest.py
https://invent.kde.org/pim/akonadi-e2e-tests/-/commit/d1bf7698b864008c2b92d6fcb2f71c2ee93d010b
diff --git a/conftest.py b/conftest.py
index dcfe212..dc97544 100644
--- a/conftest.py
+++ b/conftest.py
@@ -106,7 +106,7 @@ def qcore_app(_akonadi_env: AkonadiEnv):
yield app
[email protected](scope="session", params=list(DAVServerType))
[email protected](scope="module", params=list(DAVServerType))
def dav_server_session(request: pytest.FixtureRequest) -> Generator[DAVServer]:
server_type = request.param
server: DAVServer
@@ -123,12 +123,12 @@ def dav_server_session(request: pytest.FixtureRequest) -> Generator[DAVServer]:
server.stop()
[email protected](scope="session", params=list(ImapServerType))
[email protected](scope="module", params=list(ImapServerType))
def server_type(request):
return request.param
[email protected](scope="session")
[email protected](scope="module")
def imap_server_session(server_type: ImapServerType) -> Generator[ImapServer]:
server: ImapServer
match server_type: