agent-swarm-workbench / tests_python /test_validator_executor.py
Kiy-K's picture
Restore full Space app with bucket model support
31c8075 verified
Raw
History Blame Contribute Delete
555 Bytes
from arena.codebase_archive import LocalCodebaseArchiveStore
from arena.validator_executor import SandboxValidatorExecutor, create_validator_executor
def test_create_validator_executor_uses_sandbox_executor(monkeypatch, tmp_path) -> None:
monkeypatch.setenv("VALIDATOR_SANDBOX_PROVIDER", "local")
monkeypatch.delenv("JUDGE_SANDBOX_PROVIDER", raising=False)
executor = create_validator_executor(
archive_store=LocalCodebaseArchiveStore(root_dir=tmp_path / "archives")
)
assert isinstance(executor, SandboxValidatorExecutor)