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,
12 # It should not be enabled for automatic tests
14 # A fake captcha service for tests
15 method: Pleroma.Captcha.Mock
17 # Print only warnings and errors during test
18 config :logger, level: :warn
20 config :pleroma, Pleroma.Uploaders.Local, uploads: "test/uploads"
22 config :pleroma, Pleroma.Mailer, adapter: Swoosh.Adapters.Test
24 # Configure your database
25 config :pleroma, Pleroma.Repo,
26 adapter: Ecto.Adapters.Postgres,
29 database: "pleroma_test",
30 hostname: System.get_env("DB_HOST") || "localhost",
31 pool: Ecto.Adapters.SQL.Sandbox
33 # Reduce hash rounds for testing
34 config :pbkdf2_elixir, rounds: 1
36 config :pleroma, :websub, Pleroma.Web.WebsubMock
37 config :pleroma, :ostatus, Pleroma.Web.OStatusMock
38 config :tesla, adapter: Tesla.Mock
39 config :pleroma, :rich_media, enabled: false
41 config :web_push_encryption, :vapid_details,
42 subject: "mailto:administrator@example.com",
44 "BLH1qVhJItRGCfxgTtONfsOKDc9VRAraXw-3NsmjMngWSh7NxOizN6bkuRA7iLTMPS82PjwJAr3UoK9EC1IFrz4",
45 private_key: "_-XZ0iebPrRfZ_o0-IatTdszYa8VCH1yLN-JauK7HHA"
47 config :web_push_encryption, :http_client, Pleroma.Web.WebPushHttpClientMock
49 config :pleroma, Pleroma.Jobs, testing: [max_jobs: 2]
52 import_config "test.secret.exs"
56 "You may want to create test.secret.exs to declare custom database connection parameters."