Normalize repository validation and metadata
This commit is contained in:
parent
d4a4560a8d
commit
9d996d7936
36 changed files with 298 additions and 175 deletions
|
|
@ -222,7 +222,7 @@ class TestWorkaroundRemovalReadiness:
|
|||
# Test that the CLI works when invoked as a subprocess
|
||||
result = subprocess.run(
|
||||
[
|
||||
"python",
|
||||
sys.executable,
|
||||
"-c",
|
||||
'from kaizen_agentic.cli import safe_cli_wrapper; import sys; sys.argv = ["kaizen-agentic", "list"]; safe_cli_wrapper()',
|
||||
],
|
||||
|
|
|
|||
|
|
@ -58,6 +58,25 @@ description: Second test agent
|
|||
assert registry.get_agent("agent-two") is not None
|
||||
|
||||
|
||||
def test_agent_definition_ignores_empty_dependencies(tmp_path):
|
||||
"""An empty dependency declaration must not create an empty-name edge."""
|
||||
agent_content = """---
|
||||
name: standalone-agent
|
||||
description: Agent with an explicit empty dependency list
|
||||
dependencies: []
|
||||
---
|
||||
|
||||
# Standalone Agent
|
||||
"""
|
||||
|
||||
agent_file = tmp_path / "agent-standalone-agent.md"
|
||||
agent_file.write_text(agent_content)
|
||||
|
||||
agent_def = AgentDefinition.from_file(agent_file)
|
||||
|
||||
assert agent_def.dependencies == set()
|
||||
|
||||
|
||||
def test_agent_registry_get_agent(tmp_path):
|
||||
"""Test getting specific agent."""
|
||||
agent_content = """---
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue