tests: fix test_add - add missing required parameter

This commit is contained in:
Daulet Amirkhanov 2025-10-16 18:27:03 +01:00
parent 572c8ebce7
commit c0d450b165

View file

@ -18,11 +18,19 @@ async def test_add_succesfully_adds_url_when_preferred_loader_specified():
await cognee.prune.prune_data()
await cognee.prune.prune_system(metadata=True)
extraction_rules = {
"title": {"selector": "title", "attr": "text"},
"headings": {"selector": "h1, h2, h3", "attr": "text", "all": True},
"links": {"selector": "a", "attr": "href", "all": True},
"paragraphs": {"selector": "p", "attr": "text", "all": True},
}
loaders_config = {
"web_url_loader": {
"soup_config": {
"max_depth": 1,
"follow_links": False,
"extraction_rules": extraction_rules,
}
}
}