3 # We don't run a server during test. If one is required,
4 # you can enable the server option below.
5 config :pleroma, Pleroma.Web.Endpoint,
10 # Disable captha for tests
11 config :pleroma, Pleroma.Captcha,
13 # A fake captcha service for tests
14 method: Pleroma.Captcha.Mock
16 # Print only warnings and errors during test
17 config :logger, level: :warn
19 config :pleroma, Pleroma.Uploaders.Local, uploads: "test/uploads"
21 config :pleroma, Pleroma.Mailer, adapter: Swoosh.Adapters.Test
23 # Configure your database
24 config :pleroma, Pleroma.Repo,
25 adapter: Ecto.Adapters.Postgres,
28 database: "pleroma_test",
29 hostname: System.get_env("DB_HOST") || "localhost",
30 pool: Ecto.Adapters.SQL.Sandbox
32 # Reduce hash rounds for testing
33 config :pbkdf2_elixir, rounds: 1
35 config :pleroma, :websub, Pleroma.Web.WebsubMock
36 config :pleroma, :ostatus, Pleroma.Web.OStatusMock
37 config :tesla, adapter: Tesla.Mock
39 config :web_push_encryption, :vapid_details,
40 subject: "mailto:administrator@example.com",
42 "BLH1qVhJItRGCfxgTtONfsOKDc9VRAraXw-3NsmjMngWSh7NxOizN6bkuRA7iLTMPS82PjwJAr3UoK9EC1IFrz4",
43 private_key: "_-XZ0iebPrRfZ_o0-IatTdszYa8VCH1yLN-JauK7HHA"
46 import_config "test.secret.exs"
50 "You may want to create test.secret.exs to declare custom database connection parameters."