2017-12-08 08:58:14 +00:00
|
|
|
use Mix.Config
|
|
|
|
|
|
|
|
# We don't run a server during test. If one is required,
|
|
|
|
# you can enable the server option below.
|
2018-10-11 15:37:39 +00:00
|
|
|
config :mobilizon, MobilizonWeb.Endpoint,
|
2017-12-08 08:58:14 +00:00
|
|
|
http: [port: 4001],
|
|
|
|
server: false
|
|
|
|
|
|
|
|
# Print only warnings and errors during test
|
2018-01-13 22:33:03 +00:00
|
|
|
config :logger,
|
2018-07-27 08:45:35 +00:00
|
|
|
backends: [:console],
|
|
|
|
compile_time_purge_level: :debug,
|
|
|
|
level: :info
|
2017-12-08 08:58:14 +00:00
|
|
|
|
|
|
|
# Configure your database
|
2018-10-11 15:37:39 +00:00
|
|
|
config :mobilizon, Mobilizon.Repo,
|
2017-12-08 08:58:14 +00:00
|
|
|
adapter: Ecto.Adapters.Postgres,
|
2018-01-13 23:21:20 +00:00
|
|
|
username: System.get_env("POSTGRES_USER") || "elixir",
|
|
|
|
password: System.get_env("POSTGRES_PASSWORD") || "elixir",
|
2018-10-11 15:37:39 +00:00
|
|
|
database: "mobilizon_test",
|
2018-01-13 23:21:20 +00:00
|
|
|
hostname: System.get_env("POSTGRES_HOST") || "localhost",
|
2018-01-13 22:33:03 +00:00
|
|
|
pool: Ecto.Adapters.SQL.Sandbox,
|
2018-10-11 15:37:39 +00:00
|
|
|
types: Mobilizon.PostgresTypes
|
2018-07-04 14:23:52 +00:00
|
|
|
|
2018-10-11 15:37:39 +00:00
|
|
|
config :mobilizon, Mobilizon.Mailer, adapter: Bamboo.TestAdapter
|
2018-11-13 11:23:37 +00:00
|
|
|
|
|
|
|
config :exvcr,
|
|
|
|
vcr_cassette_library_dir: "test/fixtures/vcr_cassettes"
|