pytest-smtp-test-server/pytest_smtp_test_server/fixture.py

13 lines
228 B
Python
Raw Normal View History

2023-11-29 22:19:19 +01:00
"""
Implementation of the fixtures
"""
from smtp_test_server.context import SmtpMockServer
def smtp_server_fixture():
"""
All auto-config SMTP Server fixture
"""
with SmtpMockServer() as srv:
yield srv