2017-12-08 09:58:14 +01: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 17:37:39 +02:00
|
|
|
config :mobilizon, MobilizonWeb.Endpoint,
|
2019-01-03 11:33:52 +01:00
|
|
|
http: [
|
|
|
|
port: System.get_env("MOBILIZON_INSTANCE_PORT") || 4002
|
|
|
|
],
|
|
|
|
url: [
|
|
|
|
host: System.get_env("MOBILIZON_INSTANCE_HOST") || "mobilizon.test",
|
|
|
|
port: System.get_env("MOBILIZON_INSTANCE_PORT") || 4002
|
|
|
|
],
|
2017-12-08 09:58:14 +01:00
|
|
|
server: false
|
|
|
|
|
|
|
|
# Print only warnings and errors during test
|
2018-01-13 23:33:03 +01:00
|
|
|
config :logger,
|
2018-07-27 10:45:35 +02:00
|
|
|
backends: [:console],
|
|
|
|
compile_time_purge_level: :debug,
|
|
|
|
level: :info
|
2017-12-08 09:58:14 +01:00
|
|
|
|
|
|
|
# Configure your database
|
2018-10-11 17:37:39 +02:00
|
|
|
config :mobilizon, Mobilizon.Repo,
|
2019-01-03 11:33:52 +01:00
|
|
|
types: Mobilizon.PostgresTypes,
|
|
|
|
username: System.get_env("MOBILIZON_DATABASE_USERNAME") || "mobilizon",
|
|
|
|
password: System.get_env("MOBILIZON_DATABASE_PASSWORD") || "mobilizon",
|
|
|
|
database: System.get_env("MOBILIZON_DATABASE_DBNAME") || "mobilizon_test",
|
|
|
|
hostname: System.get_env("MOBILIZON_DATABASE_HOST") || "localhost",
|
2018-01-13 23:33:03 +01:00
|
|
|
pool: Ecto.Adapters.SQL.Sandbox,
|
2018-10-11 17:37:39 +02:00
|
|
|
types: Mobilizon.PostgresTypes
|
2018-07-04 16:23:52 +02:00
|
|
|
|
2018-10-11 17:37:39 +02:00
|
|
|
config :mobilizon, Mobilizon.Mailer, adapter: Bamboo.TestAdapter
|
2018-11-13 12:23:37 +01:00
|
|
|
|
|
|
|
config :exvcr,
|
|
|
|
vcr_cassette_library_dir: "test/fixtures/vcr_cassettes"
|
2019-03-12 11:52:28 +01:00
|
|
|
|
|
|
|
config :mobilizon, Mobilizon.Service.Geospatial, service: Mobilizon.Service.Geospatial.Mock
|