Alias Kocaptcha in the test
[akkoma] / config / test.exs
index ca10a616c244d7547055d4d48798ca1e5673d04e..5670e11a0411b4de661a251baa06d8b06aea7b0f 100644 (file)
@@ -6,11 +6,19 @@ config :pleroma, Pleroma.Web.Endpoint,
   http: [port: 4001],
   server: false
 
+# Disable captha for tests
+config :pleroma, Pleroma.Captcha,
+  enabled: true,
+  # A fake captcha service for tests
+  method: Pleroma.Captcha.Mock
+
 # Print only warnings and errors during test
 config :logger, level: :warn
 
 config :pleroma, Pleroma.Uploaders.Local, uploads: "test/uploads"
 
+config :pleroma, Pleroma.Mailer, adapter: Swoosh.Adapters.Test
+
 # Configure your database
 config :pleroma, Pleroma.Repo,
   adapter: Ecto.Adapters.Postgres,