Files
AutoMetabuilder/backend/tests/test_workflow_graph.py
johndoe6345789 cd7591d3da Introduce AutoMetabuilder core components and workflow packages:
- Implement core components: CLI argument parsing, environment loading, GitHub service creation, and logging configuration.
- Add support for OpenAI client setup and model resolution.
- Develop SDLC context loader from GitHub and repository files.
- Implement workflow context and engine builders.
- Introduce major workflow packages: `game_tick_loop` and `contextual_iterative_loop`.
- Update localization files with new package descriptions and labels.
- Streamline web navigation by loading items from a dedicated JSON file.
2026-01-10 01:56:08 +00:00

17 lines
777 B
Python

from autometabuilder.web.workflow_graph import build_workflow_graph
def test_build_workflow_graph_structure():
graph = build_workflow_graph()
assert isinstance(graph.get("nodes"), list), "nodes list should be present"
assert isinstance(graph.get("edges"), list), "edges list should be present"
counts = graph.get("count", {})
assert counts.get("nodes", 0) >= 5, "Expect at least the top-level nodes to exist"
assert counts.get("edges", 0) > 0, "Edges should exist between workflow nodes"
node_ids = {node["id"] for node in graph["nodes"]}
for edge in graph["edges"]:
assert edge["from"] in node_ids
assert edge["to"] in node_ids
assert isinstance(edge["var"], str) and edge["var"], "edges should reference a variable"