First commit

This commit is contained in:
2026-11-17 20:07:31 +01:00
parent f571df1896
commit e0d65beff0
35 changed files with 4416 additions and 1 deletions
+10
View File
@@ -0,0 +1,10 @@
"""Test settings. Set before the app is imported, so every test file sees the same values."""
import os
import tempfile
os.environ["DB_PATH"] = os.path.join(tempfile.mkdtemp(), "test.db")
os.environ["WEBHOOK_SECRET"] = "s3cret"
os.environ["MAX_ORDER_EUR"] = "100000" # most tests check % sizing; the cap is tested separately
os.environ["ENFORCE_MARKET_HOURS"] = "false" # tests must not depend on the day or time they run
for k in ("ALPACA_API_KEY", "ALPACA_SECRET_KEY", "DEEPSEEK_API_KEY"):
os.environ.pop(k, None)