12 lines
431 B
Elixir
12 lines
431 B
Elixir
# Ensure tests never hit the real Vereinfacht API (e.g. when .env is loaded by just).
|
|
# Tests that need "configured" sync set a fake URL (127.0.0.1:1) in their own setup.
|
|
System.delete_env("VEREINFACHT_API_URL")
|
|
System.delete_env("VEREINFACHT_API_KEY")
|
|
System.delete_env("VEREINFACHT_CLUB_ID")
|
|
|
|
ExUnit.start(
|
|
# shows 10 slowest tests at the end of the test run
|
|
# slowest: 10
|
|
)
|
|
|
|
Ecto.Adapters.SQL.Sandbox.mode(Mv.Repo, :manual)
|