👷 Add continuous deployment and refactors needed for it (#667)

This commit is contained in:
Sebastián Ramírez
2024-03-11 16:34:18 +01:00
committed by GitHub
parent bb7da40c87
commit b9cbb4f8f4
13 changed files with 337 additions and 107 deletions

View File

@@ -42,7 +42,8 @@ def test_recovery_password(
client: TestClient, normal_user_token_headers: dict[str, str], mocker: MockerFixture
) -> None:
mocker.patch("app.utils.send_email", return_value=None)
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")
email = "test@example.com"
r = client.post(
f"{settings.API_V1_STR}/password-recovery/{email}",

View File

@@ -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}