diff options
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" |
