1
0
mirror of https://github.com/algora-io/tv.git synced 2025-02-14 01:59:50 +02:00
algora-tv/config/test.exs

41 lines
1.2 KiB
Elixir
Raw Normal View History

2024-02-29 22:31:42 +03: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 :algora, Algora.Repo,
url: System.get_env("TEST_DATABASE_URL"),
show_sensitive_data_on_connection_error: true,
2024-02-29 22:31:42 +03:00
pool: Ecto.Adapters.SQL.Sandbox,
pool_size: 10
config :algora, Algora.Repo.Local,
url: System.get_env("TEST_DATABASE_URL"),
2024-02-29 22:31:42 +03:00
show_sensitive_data_on_connection_error: true,
pool: Ecto.Adapters.SQL.Sandbox,
2024-02-29 22:31:42 +03:00
pool_size: 10,
priv: "priv/repo"
2024-04-01 18:39:03 +03:00
config :algora, Oban, testing: :inline
2024-02-29 22:31:42 +03:00
# 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
config :algora, AlgoraWeb.Embed.Endpoint,
http: [ip: {127, 0, 0, 1}, port: 4003],
server: false
2024-02-29 22:31:42 +03:00
# 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