diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2026-04-02 10:05:25 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2026-04-02 10:05:25 +0900 |
| commit | 2446214389fb8f4644d1a24a19e5e3d7b55e8651 (patch) | |
| tree | f740f479bf5222b1b093617520e32ac220108253 /shared/tests/test_models.py | |
| parent | 87bf67bac771181aeb4f4c5bb11fae8f343c12bb (diff) | |
refactor: replace Binance/ccxt with Alpaca API client for US stocks
Diffstat (limited to 'shared/tests/test_models.py')
| -rw-r--r-- | shared/tests/test_models.py | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/shared/tests/test_models.py b/shared/tests/test_models.py index e3b9f12..2b8cd5e 100644 --- a/shared/tests/test_models.py +++ b/shared/tests/test_models.py @@ -8,15 +8,9 @@ from unittest.mock import patch def test_settings_defaults(): """Test that Settings has correct defaults.""" - with patch.dict( - os.environ, - { - "BINANCE_API_KEY": "test_key", - "BINANCE_API_SECRET": "test_secret", - }, - ): - from shared.config import Settings + from shared.config import Settings + with patch.dict(os.environ, {}, clear=False): settings = Settings() assert settings.redis_url == "redis://localhost:6379" assert settings.database_url == "postgresql://trading:trading@localhost:5432/trading" |
