fix: adapt tests to updated deps
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/promote/production Build is passing

This commit is contained in:
Simon 2026-04-07 15:52:19 +02:00
parent 879695e7b6
commit 5aaca7aa37
Signed by: simon
GPG key ID: 40E7A58C4AA1EDB2
4 changed files with 51 additions and 13 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"