tests: use emails fixture in modules that send emails
This commit is contained in:
parent
30b71b3919
commit
60c96cf25e
|
@ -36,7 +36,7 @@ def pytest_generate_tests(metafunc):
|
|||
metafunc.parametrize('pub', ['pickle', 'sql'], indirect=True)
|
||||
|
||||
@pytest.fixture
|
||||
def pub(request):
|
||||
def pub(request, emails):
|
||||
pub = create_temporary_pub(sql_mode=(request.param == 'sql'))
|
||||
|
||||
req = HTTPRequest(None, {'SCRIPT_NAME': '/', 'SERVER_NAME': 'example.net'})
|
||||
|
|
|
@ -48,7 +48,7 @@ def pytest_generate_tests(metafunc):
|
|||
metafunc.parametrize('pub', ['pickle', 'sql'], indirect=True)
|
||||
|
||||
@pytest.fixture
|
||||
def pub(request):
|
||||
def pub(request, emails):
|
||||
pub = create_temporary_pub(sql_mode=(request.param == 'sql'))
|
||||
pub.cfg['identification'] = {'methods': ['password']}
|
||||
pub.cfg['language'] = {'language': 'en'}
|
||||
|
|
Loading…
Reference in New Issue