-
-
Notifications
You must be signed in to change notification settings - Fork 157
/
Copy pathtest.exs
33 lines (23 loc) · 950 Bytes
/
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
import Config
endpoint_config = [
secret_key_base: String.duplicate("abcdefghijklmnopqrstuvxyz0123456789", 2),
render_errors: [
formats: [html: Pow.Test.Phoenix.ErrorHTML],
layout: false
]
]
config :pow, Pow.Test.Phoenix.Endpoint, endpoint_config
config :pow, Pow.Test.Ecto.Repo,
database: "pow_test",
pool: Ecto.Adapters.SQL.Sandbox,
priv: "test/support/ecto/priv",
url: System.get_env("POSTGRES_URL")
config :pow, Pow.Ecto.Schema.Password, iterations: 1
config :phoenix, :json_library, Jason
extension_test_modules = [PowEmailConfirmation, PowInvitation, PowEmailConfirmation.PowInvitation, PowPersistentSession, PowResetPassword]
for extension <- extension_test_modules do
endpoint_module = Module.concat([extension, TestWeb.Phoenix.Endpoint])
config :pow, endpoint_module, endpoint_config
end
config :pow, :extension_test_modules, extension_test_modules
config :phoenix_live_view, debug_heex_annotations: true