Clear Vereinfacht ENV in test_helper so tests never hit real API

This commit is contained in:
Moritz 2026-02-19 00:53:41 +01:00
parent 361e33adaf
commit 75567a1c0a
Signed by: moritz
GPG key ID: 1020A035E5DD0824

View file

@ -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