mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-08-05 13:35:23 +02: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:
parent
e9bb39c744
commit
c988de1921
11 changed files with 113 additions and 33 deletions
|
@ -44,8 +44,11 @@ def email_service(monkeypatch) -> EmailService:
|
|||
return email_service
|
||||
|
||||
|
||||
def test_email_disabled():
|
||||
def test_email_disabled(monkeypatch):
|
||||
email_service = EmailService(TestEmailSender())
|
||||
|
||||
monkeypatch.setenv("SMTP_HOST", "") # disable email
|
||||
|
||||
get_app_settings.cache_clear()
|
||||
email_service.settings = get_app_settings()
|
||||
success = email_service.send_test_email(FAKE_ADDRESS)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue