Fork of Pleroma with site-specific changes and feature branches https://git.pleroma.social/pleroma/pleroma
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
969B

  1. use Mix.Config
  2. # We don't run a server during test. If one is required,
  3. # you can enable the server option below.
  4. config :pleroma, Pleroma.Web.Endpoint,
  5. http: [port: 4001],
  6. server: false
  7. # Print only warnings and errors during test
  8. config :logger, level: :warn
  9. config :pleroma, Pleroma.Upload, uploads: "test/uploads"
  10. # Configure your database
  11. config :pleroma, Pleroma.Repo,
  12. adapter: Ecto.Adapters.Postgres,
  13. username: "postgres",
  14. password: "postgres",
  15. database: "pleroma_test",
  16. hostname: System.get_env("DB_HOST") || "localhost",
  17. pool: Ecto.Adapters.SQL.Sandbox
  18. # Reduce hash rounds for testing
  19. config :pbkdf2_elixir, rounds: 1
  20. config :pleroma, :websub, Pleroma.Web.WebsubMock
  21. config :pleroma, :ostatus, Pleroma.Web.OStatusMock
  22. config :pleroma, :httpoison, HTTPoisonMock
  23. try do
  24. import_config "test.secret.exs"
  25. rescue
  26. _ ->
  27. IO.puts(
  28. "You may want to create test.secret.exs to declare custom database connection parameters."
  29. )
  30. end