Bulk asynchronous downloader for multiple file hosts
Python asynciobunkrcyberdropdownloaderdropboxfilestergofilegoogle-drivemediafiremegamega-nzonedrivepatreonpawchivepinterestpixeldraintransfer-ittwitchtwittervk
tests: auto escape regex if needed (#1511)
NTFSvolumeeaeb6f7c090b
diff --git a/tests/crawlers/test_crawlers.py b/tests/crawlers/test_crawlers.pyindex b47abe7f0..db682657a 100644--- a/tests/crawlers/test_crawlers.py+++ b/tests/crawlers/test_crawlers.py@@ -127,9 +127,13 @@ def _validate_results(crawler: Crawler, test_case: CrawlerTestCase, results: lisexpected_value = mock.ANYelif expected_value.startswith("re:"):expected_value = expected_value.removeprefix("re:")- assert re.search(expected_value, str(result_value)), (+ assert _re_search(expected_value, str(result_value)), (f"{result_value = } does not match {expected_value}")continueassert expected_value == result_value, f"{attr_name} for result#{index} is different"+++def _re_search(expected_value: str, result_value: str) -> re.Match[str] | None:+ return re.search(expected_value, str(result_value)) or re.search(re.escape(expected_value), str(result_value))