Spaces:
Sleeping
Sleeping
| 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 | |