feat: publish CodexPi contest snapshot
Some checks are pending
Qualité / tests (push) Waiting to run
Some checks are pending
Qualité / tests (push) Waiting to run
This commit is contained in:
15
tests/test_config.py
Normal file
15
tests/test_config.py
Normal file
@@ -0,0 +1,15 @@
|
||||
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
|
||||
Reference in New Issue
Block a user