feat: publish CodexPi contest snapshot
Some checks are pending
Qualité / tests (push) Waiting to run

This commit is contained in:
CodexPi
2026-11-14 20:23:59 +01:00
commit 995b17a6e2
295 changed files with 36803 additions and 0 deletions

15
tests/test_config.py Normal file
View 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