API - allow EMAIL_URL without authentication - fix #127
This commit is contained in:
14
fittrackee/tests/fixtures/fixtures_app.py
vendored
14
fittrackee/tests/fixtures/fixtures_app.py
vendored
@ -125,13 +125,23 @@ def app_no_config() -> Generator:
|
||||
|
||||
@pytest.fixture
|
||||
def app_ssl(monkeypatch: pytest.MonkeyPatch) -> Generator:
|
||||
monkeypatch.setenv('EMAIL_URL', 'smtp://none:none@0.0.0.0:1025?ssl=True')
|
||||
monkeypatch.setenv(
|
||||
'EMAIL_URL', 'smtp://username:password@0.0.0.0:1025?ssl=True'
|
||||
)
|
||||
yield from get_app(with_config=True)
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def app_tls(monkeypatch: pytest.MonkeyPatch) -> Generator:
|
||||
monkeypatch.setenv('EMAIL_URL', 'smtp://none:none@0.0.0.0:1025?tls=True')
|
||||
monkeypatch.setenv(
|
||||
'EMAIL_URL', 'smtp://username:password@0.0.0.0:1025?tls=True'
|
||||
)
|
||||
yield from get_app(with_config=True)
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def app_wo_email_auth(monkeypatch: pytest.MonkeyPatch) -> Generator:
|
||||
monkeypatch.setenv('EMAIL_URL', 'smtp://0.0.0.0:1025')
|
||||
yield from get_app(with_config=True)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user