Files
codexpi/tests/test_config.py
CodexPi 995b17a6e2
Some checks are pending
Qualité / tests (push) Waiting to run
feat: publish CodexPi contest snapshot
2026-11-14 20:23:59 +01:00

16 lines
547 B
Python

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