fix: refactored manually
Some checks failed
validation / verify (push) Failing after 15s

This commit is contained in:
2026-09-02 16:08:12 +01:00
parent 43cbd215e2
commit b9a924cf4a
63 changed files with 1398 additions and 6 deletions

View File

@@ -0,0 +1,32 @@
"""Integration tests for LangGraph StateGraph execution."""
import pytest
from app.workflows.gcp_architecture_graph import create_agent
from app.skills.loader import SkillLoader
from app.config import get_settings
def test_agent_graph_execution():
"""Verify execution of the 4-phase LangGraph StateGraph."""
settings = get_settings()
loader = SkillLoader(settings.SKILLS_DIR)
loader.load_skills()
agent = create_agent(loader)
initial_state = {
"workflow_request": "Event-driven regional HTTP application",
"target_dir": ".",
"active_skills": [],
}
final_state = agent.invoke(initial_state)
assert final_state.get("current_phase") == "package"
assert final_state.get("requirements_doc") is not None
assert final_state.get("architecture_doc") is not None
assert final_state.get("mermaid_diagram") is not None
assert final_state.get("terraform_code") is not None
assert final_state.get("validation_results") is not None
assert final_state.get("solution_guide") is not None
assert final_state.get("validation_passed") is True
assert len(final_state.get("active_skills", [])) == 4