summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorLain Soykaf <lain@lain.com>2023-12-12 19:35:19 +0400
committerLain Soykaf <lain@lain.com>2023-12-12 19:35:19 +0400
commitcca6c20eb6acd0f510054d1a1050d12ea2a32482 (patch)
treedcdacdec964f040d3d53d0f8e8e36918372e87de /test
parenta989b793de5790987e1a6a82a7da37be673b11f8 (diff)
downloadpleroma-cca6c20eb6acd0f510054d1a1050d12ea2a32482.tar.gz
pleroma-cca6c20eb6acd0f510054d1a1050d12ea2a32482.zip
Revert "EmailTest: use config mock"
This reverts commit dca41cc4a37999a6971b70ef5e0996e528b79bf5.
Diffstat (limited to 'test')
-rw-r--r--test/mix/tasks/pleroma/email_test.exs17
1 files changed, 4 insertions, 13 deletions
diff --git a/test/mix/tasks/pleroma/email_test.exs b/test/mix/tasks/pleroma/email_test.exs
index 8682ee85d..20b76ae3a 100644
--- a/test/mix/tasks/pleroma/email_test.exs
+++ b/test/mix/tasks/pleroma/email_test.exs
@@ -3,15 +3,13 @@
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Mix.Tasks.Pleroma.EmailTest do
- use Pleroma.DataCase, async: true
+ use Pleroma.DataCase
import Swoosh.TestAssertions
- alias Pleroma.Test.StaticConfig, as: Config
+ alias Pleroma.Config
alias Pleroma.Tests.ObanHelpers
- alias Pleroma.UnstubbedConfigMock, as: ConfigMock
- import Mox
import Pleroma.Factory
setup_all do
@@ -24,15 +22,8 @@ defmodule Mix.Tasks.Pleroma.EmailTest do
:ok
end
- setup do
- ConfigMock
- |> stub(:get, fn
- [Pleroma.Emails.Mailer, :enabled] -> true
- [:instance, :account_activation_required] -> true
- end)
-
- :ok
- end
+ setup do: clear_config([Pleroma.Emails.Mailer, :enabled], true)
+ setup do: clear_config([:instance, :account_activation_required], true)
describe "pleroma.email test" do
test "Sends test email with no given address" do