16 lines
547 B
Python
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
|