Fix research pipeline runtime failures

This commit is contained in:
faligam
2026-09-07 11:16:36 +02:00
parent cf10cd9636
commit a5324d3971
9 changed files with 184 additions and 24 deletions

View File

@@ -176,6 +176,13 @@ def test_url_dedup_no_duplicate() -> None:
# ---------------------------------------------------------------------------
async def test_fetcher_configures_all_httpx_timeout_phases() -> None:
"""httpx requires a pool timeout when the other phases are explicit."""
fetcher = AsyncFetcher()
assert fetcher._client.timeout.pool == 10.0
await fetcher.close()
async def test_fetcher_blocked_url() -> None:
"""Fetcher must return BLOCKED for SSRF-blocked URLs."""
fetcher = AsyncFetcher()
@@ -266,4 +273,4 @@ def test_normalized_document_hash_matches() -> None:
text="test content for hash",
)
expected = hashlib.sha256(b"test content for hash").hexdigest()
assert doc.content_hash == expected
assert doc.content_hash == expected