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")