2023-06-06 15:38:19 +00:00
|
|
|
import Config
|
|
|
|
|
|
|
|
# Configure your database
|
|
|
|
#
|
|
|
|
# The MIX_TEST_PARTITION environment variable can be used
|
|
|
|
# to provide built-in test partitioning in CI environment.
|
|
|
|
# Run `mix help test` for more information.
|
|
|
|
config :hostas, Hostas.Repo,
|
|
|
|
database: Path.expand("../hostas_test.db", Path.dirname(__ENV__.file)),
|
|
|
|
pool_size: 5,
|
|
|
|
pool: Ecto.Adapters.SQL.Sandbox
|
|
|
|
|
|
|
|
# We don't run a server during test. If one is required,
|
|
|
|
# you can enable the server option below.
|
|
|
|
config :hostas, HostasWeb.Endpoint,
|
|
|
|
http: [ip: {127, 0, 0, 1}, port: 4002],
|
|
|
|
secret_key_base: "xLjw787QjTeSl6TC9d0gGiUFnKOriat1gZq1MHFR647QHafMJIs+zaz8FqC3lFfr",
|
|
|
|
server: false
|
|
|
|
|
|
|
|
# In test we don't send emails.
|
|
|
|
config :hostas, Hostas.Mailer, adapter: Swoosh.Adapters.Test
|
|
|
|
|
|
|
|
# Disable swoosh api client as it is only required for production adapters.
|
|
|
|
config :swoosh, :api_client, false
|
|
|
|
|
|
|
|
# Print only warnings and errors during test
|
|
|
|
config :logger, level: :warning
|
|
|
|
|
|
|
|
# Initialize plugs at runtime for faster test compilation
|
|
|
|
config :phoenix, :plug_init_mode, :runtime
|
2023-06-07 17:12:33 +00:00
|
|
|
|
|
|
|
# Decrease the number of rounds used to encrypt passwords and whatnot
|
|
|
|
# to improve performance
|
|
|
|
config :bcrypt_elixir, :log_rounds, 4
|