fix tests
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-02-04 21:52:23 -05:00
parent 1284a0c4b1
commit 0ea953a34c
4 changed files with 12 additions and 3 deletions

View File

@ -42,8 +42,6 @@ config :memex, Memex.Repo,
pool_size: String.to_integer(System.get_env("POOL_SIZE", "10")),
socket_options: maybe_ipv6
config :memex, Memex.Accounts, registration: System.get_env("REGISTRATION", "invite")
config :memex, MemexWeb.Endpoint,
url: [scheme: "https", host: host, port: 443],
http: [
@ -54,6 +52,10 @@ config :memex, MemexWeb.Endpoint,
],
server: true
if config_env() in [:dev, :prod] do
config :memex, Memex.Accounts, registration: System.get_env("REGISTRATION", "invite")
end
if config_env() == :prod do
# The secret key base is used to sign/encrypt cookies and other secrets.
# A default value is used in config/dev.exs and config/test.exs but you

View File

@ -22,6 +22,9 @@ config :memex, MemexWeb.Endpoint,
# In test we don't send emails.
config :memex, Memex.Mailer, adapter: Swoosh.Adapters.Test
# Don't require invites for signups
config :memex, Memex.Accounts, registration: "public"
# Print only warnings and errors during test
config :logger, level: :warn