Files
codexpi/tests/test_config.py

16 lines
547 B
Python
Raw Normal View History

2026-11-14 20:23:59 +01:00
from codexpi.config import Settings
def test_orchestrator_defaults_to_three_active_agents(monkeypatch, tmp_path):
monkeypatch.delenv("CODEXPI_MAX_CONCURRENT_AGENTS", raising=False)
monkeypatch.setenv("CODEXPI_BASE", str(tmp_path))
assert Settings.load().max_concurrent_agents == 3
def test_orchestrator_concurrency_override_is_bounded(monkeypatch, tmp_path):
monkeypatch.setenv("CODEXPI_BASE", str(tmp_path))
monkeypatch.setenv("CODEXPI_MAX_CONCURRENT_AGENTS", "99")
assert Settings.load().max_concurrent_agents == 8