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,
9 # Print only warnings and errors during test
10 config :logger, level: :warn
12 config :pleroma, Pleroma.Uploaders.Local, uploads: "test/uploads"
14 # Configure your database
15 config :pleroma, Pleroma.Repo,
16 adapter: Ecto.Adapters.Postgres,
19 database: "pleroma_test",
20 hostname: System.get_env("DB_HOST") || "localhost",
21 pool: Ecto.Adapters.SQL.Sandbox
23 # Reduce hash rounds for testing
24 config :pbkdf2_elixir, rounds: 1
26 config :pleroma, :websub, Pleroma.Web.WebsubMock
27 config :pleroma, :ostatus, Pleroma.Web.OStatusMock
28 config :pleroma, :httpoison, HTTPoisonMock
31 import_config "test.secret.exs"
35 "You may want to create test.secret.exs to declare custom database connection parameters."