2017-12-08 08:58:14 +00:00
|
|
|
use Mix.Config
|
|
|
|
|
2019-03-22 12:58:19 +00:00
|
|
|
config :mobilizon, :instance,
|
|
|
|
name: "Test instance",
|
|
|
|
registrations_open: true
|
|
|
|
|
2017-12-08 08:58:14 +00:00
|
|
|
# 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,
|
2019-01-03 10:33:52 +00:00
|
|
|
http: [
|
2019-04-25 17:05:05 +00:00
|
|
|
port: System.get_env("MOBILIZON_INSTANCE_PORT") || 80
|
2019-01-03 10:33:52 +00:00
|
|
|
],
|
|
|
|
url: [
|
2019-04-25 17:05:05 +00:00
|
|
|
host: System.get_env("MOBILIZON_INSTANCE_HOST") || "mobilizon.test"
|
2019-01-03 10:33:52 +00:00
|
|
|
],
|
2017-12-08 08:58:14 +00:00
|
|
|
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
|
2019-09-07 23:49:56 +00:00
|
|
|
config :mobilizon, Mobilizon.Storage.Repo,
|
|
|
|
types: Mobilizon.Storage.PostgresTypes,
|
2019-01-03 10:33:52 +00:00
|
|
|
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",
|
2019-09-07 23:49:56 +00:00
|
|
|
pool: Ecto.Adapters.SQL.Sandbox
|
2018-07-04 14:23:52 +00:00
|
|
|
|
2019-09-17 00:45:32 +00:00
|
|
|
config :mobilizon, MobilizonWeb.Email.Mailer, adapter: Bamboo.TestAdapter
|
2018-11-13 11:23:37 +00:00
|
|
|
|
2019-05-22 12:12:11 +00:00
|
|
|
config :mobilizon, MobilizonWeb.Upload, filters: [], link_name: false
|
|
|
|
|
|
|
|
config :mobilizon, MobilizonWeb.Uploaders.Local, uploads: "test/uploads"
|
|
|
|
|
2018-11-13 11:23:37 +00:00
|
|
|
config :exvcr,
|
|
|
|
vcr_cassette_library_dir: "test/fixtures/vcr_cassettes"
|
2019-03-12 10:52:28 +00:00
|
|
|
|
|
|
|
config :mobilizon, Mobilizon.Service.Geospatial, service: Mobilizon.Service.Geospatial.Mock
|