mirror of
https://github.com/Alishahryar1/free-claude-code.git
synced 2026-04-28 11:30:03 +00:00
This commit is contained in:
parent
4fdf7e8b7e
commit
55131019e1
3 changed files with 12 additions and 3 deletions
|
|
@ -16,16 +16,21 @@ class TestSettings:
|
|||
settings = Settings()
|
||||
assert settings is not None
|
||||
|
||||
def test_default_values(self):
|
||||
def test_default_values(self, monkeypatch):
|
||||
"""Test default values are set and have correct types."""
|
||||
from config.settings import Settings
|
||||
|
||||
monkeypatch.delenv("MODEL", raising=False)
|
||||
monkeypatch.delenv("HTTP_READ_TIMEOUT", raising=False)
|
||||
monkeypatch.setitem(Settings.model_config, "env_file", ())
|
||||
settings = Settings()
|
||||
assert settings.model == "nvidia_nim/stepfun-ai/step-3.5-flash"
|
||||
assert isinstance(settings.provider_rate_limit, int)
|
||||
assert isinstance(settings.provider_rate_window, int)
|
||||
assert isinstance(settings.nim.temperature, float)
|
||||
assert isinstance(settings.fast_prefix_detection, bool)
|
||||
assert isinstance(settings.enable_thinking, bool)
|
||||
assert settings.http_read_timeout == 120.0
|
||||
|
||||
def test_get_settings_cached(self):
|
||||
"""Test get_settings returns cached instance."""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue