This commit is contained in:
William FH
2025-01-13 10:01:36 -08:00
committed by GitHub
parent d7199e5874
commit a03f1f7469
3 changed files with 9 additions and 3 deletions
+6
View File
@@ -91,6 +91,12 @@ def test_validate_config():
validate_config({"python_version": "3.10"})
assert "Minimum required version" in str(exc_info.value)
config = validate_config({"python_version": "3.11-bullseye", "dependencies": ["."], "graphs": {"agent": "./agent.py:graph"}})
assert config["python_version"] == "3.11-bullseye"
config = validate_config({"python_version": "3.12-slim", "dependencies": ["."], "graphs": {"agent": "./agent.py:graph"}})
assert config["python_version"] == "3.12-slim"
def test_validate_config_file():
with tempfile.TemporaryDirectory() as tmpdir: