37 lines
1.2 kB
1
import Config
2
3
# Configure your database
4
#
5
# The MIX_TEST_PARTITION environment variable can be used
6
# to provide built-in test partitioning in CI environment.
7
# Run `mix help test` for more information.
8
config :blog, Blog.Repo,
9
username: "postgres",
10
password: "postgres",
11
hostname: "localhost",
12
database: "blog_test#{System.get_env("MIX_TEST_PARTITION")}",
13
pool: Ecto.Adapters.SQL.Sandbox,
14
pool_size: 10
15
16
# We don't run a server during test. If one is required,
17
# you can enable the server option below.
18
config :blog, BlogWeb.Endpoint,
19
http: [ip: {127, 0, 0, 1}, port: 4002],
20
secret_key_base: "jQyqtj2csoAa8eHE6RnjL+4pab1jY72H1C9ARjmpflD9AMbWodBmDsjRr7rZZ8jn",
21
server: false
22
23
# In test we don't send emails
24
config :blog, Blog.Mailer, adapter: Swoosh.Adapters.Test
25
26
# Disable swoosh api client as it is only required for production adapters
27
config :swoosh, :api_client, false
28
29
# Print only warnings and errors during test
30
config :logger, level: :warning
31
32
# Initialize plugs at runtime for faster test compilation
33
config :phoenix, :plug_init_mode, :runtime
34
35
# Enable helpful, but potentially expensive runtime checks
36
config :phoenix_live_view,
37
enable_expensive_runtime_checks: true
38