Download tests/test_agent/test_config.py from polyHedra/PolyHedra: direct link, hf CLI and curl.
- Browser
- Download file 584 Bytes
-
https://huggingface.co/spaces/polyHedra/PolyHedra/resolve/main/tests/test_agent/test_config.py
- Command line
-
hf download hf://spaces/polyHedra/PolyHedra/tests/test_agent/test_config.py
-
curl -L -o test_config.py https://huggingface.co/spaces/polyHedra/PolyHedra/resolve/main/tests/test_agent/test_config.py
584 Bytes
| """Tests for agent configuration.""" | |
| import pytest | |
| from polyhedra.agent.config import AgentConfig | |
| def test_default_config(): | |
| """Test default configuration.""" | |
| config = AgentConfig() | |
| assert config.max_retry_attempts == 3 | |
| assert config.checkpoint_cost_threshold == 0.50 | |
| assert config.state_dir == ".polyhedra/state" | |
| def test_config_to_dict(): | |
| """Test configuration serialization.""" | |
| config = AgentConfig(max_retry_attempts=5) | |
| data = config.to_dict() | |
| assert data["max_retry_attempts"] == 5 | |
| assert "checkpoint_cost_threshold" in data | |