From 23a88e3cf420cc20c4572ea1fc9a3c9ceb21227d Mon Sep 17 00:00:00 2001 From: msramalho <19508417+msramalho@users.noreply.github.com> Date: Mon, 2 Mar 2026 17:07:09 +0000 Subject: [PATCH] ci issues --- .../antibot_extractor_enricher/antibot_extractor_enricher.py | 1 + tests/extractors/test_antibot_extractor_enricher.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/auto_archiver/modules/antibot_extractor_enricher/antibot_extractor_enricher.py b/src/auto_archiver/modules/antibot_extractor_enricher/antibot_extractor_enricher.py index 26a1103..15c70e3 100644 --- a/src/auto_archiver/modules/antibot_extractor_enricher/antibot_extractor_enricher.py +++ b/src/auto_archiver/modules/antibot_extractor_enricher/antibot_extractor_enricher.py @@ -73,6 +73,7 @@ class AntibotExtractorEnricher(Extractor, Enricher): if self.enrich(result): result.status = "antibot" return result + return False def _prepare_user_data_dir(self): if self.user_data_dir: diff --git a/tests/extractors/test_antibot_extractor_enricher.py b/tests/extractors/test_antibot_extractor_enricher.py index 9becfe9..7663ba0 100644 --- a/tests/extractors/test_antibot_extractor_enricher.py +++ b/tests/extractors/test_antibot_extractor_enricher.py @@ -53,6 +53,7 @@ class TestAntibotExtractorEnricher(TestExtractorBase): } @pytest.mark.download + @pytest.mark.flaky(reruns=2, reruns_delay=5) @pytest.mark.parametrize( "url,in_title,in_text,image_count,video_count,skip_ci", [ @@ -128,6 +129,7 @@ class TestAntibotExtractorEnricher(TestExtractorBase): item = make_item(url) result = self.extractor.download(item) + assert result, f"download() returned {result!r} — Selenium may have failed (e.g., window close timeout)" assert result.status == "antibot", "Expected status to be 'antibot'" # Check title contains all required words (case-insensitive)