forked from pentacent/keila
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.exs
55 lines (44 loc) · 1.57 KB
/
test.exs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
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.
# URL can be overwritten with the DB_URL environment variable.
config :keila, Keila.Repo,
url:
"ecto://postgres:postgres@localhost:5432/keila_test#{System.get_env("MIX_TEST_PARTITION")}",
pool: Ecto.Adapters.SQL.Sandbox,
ownership_timeout: 60_000,
timeout: 60_000,
pool_size: 16
config :keila, skip_migrations: true
# We don't run a server during test. If one is required,
# you can enable the server option below.
config :keila, KeilaWeb.Endpoint,
http: [port: 4002],
server: false
# Print only warnings and errors during test
config :logger, level: :warn
# Configure Swoosh
config :keila, Keila.Mailer, adapter: Swoosh.Adapters.Test
# Configure Argon2 for performance (not security)
config :argon2_elixir, t_cost: 1, m_cost: 8
# Configure Oban for testing
config :keila, Oban, testing: :manual
# Allow scheduling campaigns at utc_now
config :keila, Keila.Mailings, min_campaign_schedule_offset: -10
# Only use test and smtp Sender Adapters
config :keila, Keila.Mailings.SenderAdapters,
adapters: [
Keila.Mailings.SenderAdapters.SMTP,
Keila.Mailings.SenderAdapters.SES,
Keila.TestSenderAdapter
]
# Disable sending quotas by default in testing
config :keila, Keila.Accounts, credits_enabled: false
config :keila, Keila.Billing,
# Disable subscriptions
enabled: false,
# Disable paddle signature verification
paddle_signature_verification_enabled: false