Spaces:
Sleeping
Sleeping
Download tests/test_tools.py from KheemDH/agentic-multiwriter: direct link, hf CLI and curl.
- Browser
- Download file 347 Bytes
-
https://huggingface.co/spaces/KheemDH/agentic-multiwriter/resolve/main/tests/test_tools.py
- Command line
-
hf download hf://spaces/KheemDH/agentic-multiwriter/tests/test_tools.py
-
curl -L -o test_tools.py https://huggingface.co/spaces/KheemDH/agentic-multiwriter/resolve/main/tests/test_tools.py
347 Bytes
| from agentic_multiwriter.tools import normalize_snippets | |
| def test_normalize_snippets_deduplication(): | |
| snippets = [ | |
| {"title": "A", "url": "http://example.com", "snippet": "Same text"}, | |
| {"title": "B", "url": "http://example.com", "snippet": "Same text"}, | |
| ] | |
| norm = normalize_snippets(snippets) | |
| assert len(norm) == 1 | |