tests (e2e): new fixture to share data between tests:

this is usefull in some edge cases when tests are dependents of each other.
This commit is contained in:
Goffi 2020-12-04 12:38:38 +01:00
commit b034e46543

View file

@ -235,3 +235,9 @@ def sent_emails(fake_smtp):
"""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 {}