fix: async queue

This commit is contained in:
2025-10-06 20:00:54 +02:00
parent 497633fb61
commit e105ff233f
16 changed files with 88 additions and 60 deletions
@@ -251,10 +251,9 @@ class TestHtmlCrawler:
# Should extract the first number found (2024)
assert result == 2024
def test_supports_html_source_kind(self, html_crawler):
def test_supports_html_source_kind(self):
"""Test that supports method returns True for HTML source kind."""
assert html_crawler.supports(SourceKind.HTML) is True
assert html_crawler.supports(SourceKind.WORDPRESS) is False
assert HtmlCrawler.supports() is SourceKind.HTML
def test_get_pagination_integration(self, html_crawler):
"""Integration test for get_pagination calling get_last_page."""
@@ -210,10 +210,9 @@ class TestWordPressCrawler:
# Should be sorted by ID: 1, 2, 3
assert result == "alpha,beta,charlie"
def test_supports_wordpress_source_kind(self, wordpress_crawler):
def test_supports_wordpress_source_kind(self):
"""Test supports method returns True for WordPress source kind."""
assert wordpress_crawler.supports(SourceKind.WORDPRESS) is True
assert wordpress_crawler.supports(SourceKind.HTML) is False
assert WordpressCrawler.supports() is SourceKind.WORDPRESS
@pytest.mark.parametrize(
"pages,posts,expected_start,expected_end",