agentic-multiwriter / tests /test_tools.py
Kheem Dharmani
Initial commit: Agentic Multiwriter
32f259e
raw
history blame contribute delete
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