👷 Add continuous deployment and refactors needed for it (#667)
This commit is contained in:
committed by
GitHub
parent
bb7da40c87
commit
b9cbb4f8f4
@@ -37,7 +37,8 @@ def test_create_user_new_email(
|
||||
mocker: MockerFixture,
|
||||
) -> None:
|
||||
mocker.patch("app.utils.send_email")
|
||||
mocker.patch("app.core.config.settings.EMAILS_ENABLED", True)
|
||||
mocker.patch("app.core.config.settings.SMTP_HOST", "smtp.example.com")
|
||||
mocker.patch("app.core.config.settings.SMTP_USER", "admin@example.com")
|
||||
username = random_email()
|
||||
password = random_lower_string()
|
||||
data = {"email": username, "password": password}
|
||||
|
||||
Reference in New Issue
Block a user