Clear Vereinfacht ENV in test_helper so tests never hit real API
This commit is contained in:
parent
124857cc9c
commit
02245e6684
1 changed files with 6 additions and 0 deletions
|
|
@ -1,3 +1,9 @@
|
|||
# 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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue