First commit
This commit is contained in:
@@ -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)
|
||||
Reference in New Issue
Block a user