mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-07-10 22:32:16 +02:00
chore: bumped version to 0.0.31
This commit is contained in:
parent
8df8565e0a
commit
1c9ab207ef
56 changed files with 520 additions and 190 deletions
|
|
@ -125,9 +125,7 @@ async def test_dedupes_on_canonical_url() -> None:
|
|||
}
|
||||
)
|
||||
|
||||
await crawl_site(
|
||||
engine, ["https://e.com/"], max_crawl_depth=3, max_crawl_pages=10
|
||||
)
|
||||
await crawl_site(engine, ["https://e.com/"], max_crawl_depth=3, max_crawl_pages=10)
|
||||
|
||||
assert engine.calls.count("https://e.com/a") == 1
|
||||
assert engine.calls.count("https://e.com/") == 1
|
||||
|
|
|
|||
|
|
@ -116,7 +116,12 @@ def test_extract_link_records_dedupes_keeping_first_nonempty_text() -> None:
|
|||
html = '<a href="/p"><img src="logo.png"/></a><a href="/p">Pricing</a>'
|
||||
records = extract_link_records(html, "https://example.com/")
|
||||
assert records == [
|
||||
{"url": "https://example.com/p", "text": "Pricing", "rel": "", "kind": "internal"}
|
||||
{
|
||||
"url": "https://example.com/p",
|
||||
"text": "Pricing",
|
||||
"rel": "",
|
||||
"kind": "internal",
|
||||
}
|
||||
]
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue