changeset 3440:53da72a17139

tests (e2e): new fixture to share data between tests: this is usefull in some edge cases when tests are dependents of each other.
author Goffi <goffi@goffi.org>
date Fri, 04 Dec 2020 12:38:38 +0100
parents b166a59b1724
children fdf56af87719
files tests/e2e/conftest.py
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tests/e2e/conftest.py	Fri Dec 04 12:37:38 2020 +0100
+++ b/tests/e2e/conftest.py	Fri Dec 04 12:38:38 2020 +0100
@@ -235,3 +235,9 @@
     """Catch email sent during the tests"""
     SMTPMessageHandler.messages.clear()
     return SMTPMessageHandler.messages
+
+
+@pytest.fixture(scope="class")
+def shared_data():
+    """A dictionary used for share data between dependent tests"""
+    return {}