Spaces:
Sleeping
Sleeping
File size: 698 Bytes
32f259e |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
from agentic_multiwriter.graph.workflow import build_workflow_app
from agentic_multiwriter.state import AgentState
def test_build_workflow_app():
app = build_workflow_app()
assert app is not None
# Smoke test: invoke with minimal state up to first node.
state: AgentState = {
"topic": "Test topic",
"mode": "blog",
"research_snippets": [],
"outline": [],
"draft": "",
"revised_draft": "",
"final_output": "",
"meta": {},
}
# We won't run the whole graph here because nodes depend on external services.
# Just confirm the app can be created and has an 'invoke' method.
assert hasattr(app, "invoke")
|