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:
parent
ad3aea8ec0
commit
b034e46543
1 changed files with 6 additions and 0 deletions
|
|
@ -235,3 +235,9 @@ def sent_emails(fake_smtp):
|
||||||
"""Catch email sent during the tests"""
|
"""Catch email sent during the tests"""
|
||||||
SMTPMessageHandler.messages.clear()
|
SMTPMessageHandler.messages.clear()
|
||||||
return SMTPMessageHandler.messages
|
return SMTPMessageHandler.messages
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.fixture(scope="class")
|
||||||
|
def shared_data():
|
||||||
|
"""A dictionary used for share data between dependent tests"""
|
||||||
|
return {}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue