Spaces:
Sleeping
Sleeping
Download tests/test_agents.py from KheemDH/agentic-multiwriter: direct link, hf CLI and curl.
- Browser
- Download file 526 Bytes
-
https://huggingface.co/spaces/KheemDH/agentic-multiwriter/resolve/main/tests/test_agents.py
- Command line
-
hf download hf://spaces/KheemDH/agentic-multiwriter/tests/test_agents.py
-
curl -L -o test_agents.py https://huggingface.co/spaces/KheemDH/agentic-multiwriter/resolve/main/tests/test_agents.py
526 Bytes
| from agentic_multiwriter.state import AgentState | |
| from agentic_multiwriter.agents import aggregator_node | |
| def test_aggregator_node_handles_empty(): | |
| state: AgentState = { | |
| "topic": "Test", | |
| "mode": "blog", | |
| "research_snippets": [], | |
| "outline": [], | |
| "draft": "", | |
| "revised_draft": "", | |
| "final_output": "", | |
| "meta": {}, | |
| } | |
| new_state = aggregator_node(state) | |
| assert "research_snippets" in new_state | |
| assert isinstance(new_state["research_snippets"], list) | |