fix: async queue
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user