~sbaildon/yemma

yemma/config/test.exs -rw-r--r-- 566 bytes
38e5b1faSean Baildon user_settings_url with conn 2 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import Config

config :yemma, ecto_repos: [YemmaTest.Repo]

config :yemma, YemmaTest.Repo,
  priv: "test/support/",
  url: System.fetch_env!("DATABASE_URL"),
  pool_size: 5,
  pool: Ecto.Adapters.SQL.Sandbox,
  migration_primary_key: [type: :string]

# In test we don't send emails.
config :yemma, Yemma.Mailer, adapter: Swoosh.Adapters.Test

# Initialize plugs at runtime for faster test compilation
config :phoenix, :plug_init_mode, :runtime

config :swoosh, :api_client, false

config :logger, :console, format: "$time $metadata[$level] $message\n", level: :warn