Merge remote-tracking branch 'origin/main' into bugfix/harden-env-handling
All checks were successful
continuous-integration/drone/push Build is passing

Made-with: Cursor

# Conflicts:
#	test/mv_web/controllers/auth_controller_test.exs
This commit is contained in:
Simon 2026-04-07 16:33:24 +02:00
commit 1d3f973410
Signed by: simon
GPG key ID: 40E7A58C4AA1EDB2
5 changed files with 51 additions and 28 deletions

View file

@ -5,12 +5,14 @@ defmodule Mv.MailerTest do
Uses Swoosh.Adapters.Test (configured in test.exs); no real SMTP. Asserts
success/error contract and that one test email is sent on success.
"""
use Mv.DataCase, async: true
use Mv.DataCase, async: false
import Swoosh.TestAssertions
alias Mv.Mailer
setup :set_swoosh_global
describe "send_test_email/1" do
test "returns {:ok, email} and sends one email with expected subject/body when successful" do
to_email = "test-#{System.unique_integer([:positive])}@example.com"