1
0
mirror of https://github.com/algora-io/tv.git synced 2025-01-25 01:32:39 +02:00
algora-tv/config/test.exs
2024-02-29 22:31:42 +03:00

45 lines
1.3 KiB
Elixir

import Config
config :algora,
replica: Algora.Repo
# 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 :algora, Algora.Repo,
username: "postgres",
password: "postgres",
database: "algora_test#{System.get_env("MIX_TEST_PARTITION")}",
hostname: "localhost",
pool: Ecto.Adapters.SQL.Sandbox,
pool_size: 10
config :algora, Algora.ReplicaRepo,
username: "postgres",
password: "postgres",
database: "algora_test#{System.get_env("MIX_TEST_PARTITION")}",
hostname: "localhost",
show_sensitive_data_on_connection_error: true,
pool_size: 10,
priv: "priv/repo"
# To prevent Oban from running jobs and plugins during test runs, enable :testing mode
config :algora, Oban, testing: :inline
# We don't run a server during test. If one is required,
# you can enable the server option below.
config :algora, AlgoraWeb.Endpoint,
http: [ip: {127, 0, 0, 1}, port: 4002],
server: false
# Print only warnings and errors during test
config :logger, level: :warn
# Initialize plugs at runtime for faster test compilation
config :phoenix, :plug_init_mode, :runtime
# Disable swoosh api client as it is only required for production adapters.
config :swoosh, :api_client, false