mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-11-25 05:04:05 -05:00
fix: group creation (#1126)
* fix: unify group creation - closes #1100 * tests: disable password hashing during testing * tests: fix email config tests
This commit is contained in:
@@ -60,8 +60,17 @@ def test_pg_connection_args(monkeypatch):
|
||||
|
||||
|
||||
def test_smtp_enable(monkeypatch):
|
||||
monkeypatch.setenv("SMTP_HOST", "")
|
||||
monkeypatch.setenv("SMTP_PORT", "")
|
||||
monkeypatch.setenv("SMTP_TLS", "true")
|
||||
monkeypatch.setenv("SMTP_FROM_NAME", "")
|
||||
monkeypatch.setenv("SMTP_FROM_EMAIL", "")
|
||||
monkeypatch.setenv("SMTP_USER", "")
|
||||
monkeypatch.setenv("SMTP_PASSWORD", "")
|
||||
|
||||
get_app_settings.cache_clear()
|
||||
app_settings = get_app_settings()
|
||||
|
||||
assert app_settings.SMTP_ENABLE is False
|
||||
|
||||
monkeypatch.setenv("SMTP_HOST", "email.mealie.io")
|
||||
|
||||
Reference in New Issue
Block a user