Download tests_python/test_validator_executor.py from build-small-hackathon/agent-swarm-workbench: direct link, hf CLI and curl.
- Browser
- Download file 555 Bytes
-
https://huggingface.co/spaces/build-small-hackathon/agent-swarm-workbench/resolve/main/tests_python/test_validator_executor.py
- Command line
-
hf download hf://spaces/build-small-hackathon/agent-swarm-workbench/tests_python/test_validator_executor.py
-
curl -L -o test_validator_executor.py https://huggingface.co/spaces/build-small-hackathon/agent-swarm-workbench/resolve/main/tests_python/test_validator_executor.py
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) | |