# HG changeset patch # User Goffi # Date 1607081918 -3600 # Node ID 53da72a171399c8868782f70945c0dca36214dd4 # Parent b166a59b17247ebfeb1c3cb49cefddfada097671 tests (e2e): new fixture to share data between tests: this is usefull in some edge cases when tests are dependents of each other. diff -r b166a59b1724 -r 53da72a17139 tests/e2e/conftest.py --- 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 {}