Spaces:
Sleeping
Sleeping
Download tests/test_workflow.py from KheemDH/agentic-multiwriter: direct link, hf CLI and curl.
- Browser
- Download file 698 Bytes
-
https://huggingface.co/spaces/KheemDH/agentic-multiwriter/resolve/main/tests/test_workflow.py
- Command line
-
hf download hf://spaces/KheemDH/agentic-multiwriter/tests/test_workflow.py
-
curl -L -o test_workflow.py https://huggingface.co/spaces/KheemDH/agentic-multiwriter/resolve/main/tests/test_workflow.py
698 Bytes
| 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") | |