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

13 lines
228 B
Python

"""
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