Mercurial > libervia-backend
diff tests/e2e/conftest.py @ 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 | 42d6d00e4e8a |
children | be6d91572633 |
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 {}