🕷️ The BEST Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ and follow here for daily tips and tricks: https://x.com/Scrapling_dev
Python aiai-scrapingautomationcrawlercrawlingcrawling-pythondatadata-extractionmcpmcp-serverplaywrightpythonscrapingselectorsstealthweb-scraperweb-scrapingweb-scraping-pythonwebscrapingxpath
test: Update tests to use current configuration
Karim shoairc36baf7b4ce1
diff --git a/tests/fetchers/async/test_camoufox.py b/tests/fetchers/async/test_camoufox.pyindex f2f495d..937ec43 100644--- a/tests/fetchers/async/test_camoufox.py+++ b/tests/fetchers/async/test_camoufox.py@@ -3,13 +3,15 @@ import pytest_httpbinfrom scrapling import StealthyFetcher+StealthyFetcher.auto_match = True+@pytest_httpbin.use_class_based_httpbin@pytest.mark.asyncioclass TestStealthyFetcher:@pytest.fixture(scope="class")def fetcher(self):- return StealthyFetcher(auto_match=False)+ return StealthyFetcher@pytest.fixture(scope="class")def urls(self, httpbin):diff --git a/tests/fetchers/async/test_httpx.py b/tests/fetchers/async/test_httpx.pyindex 67cc037..64b7fae 100644--- a/tests/fetchers/async/test_httpx.py+++ b/tests/fetchers/async/test_httpx.py@@ -3,13 +3,15 @@ import pytest_httpbinfrom scrapling.fetchers import AsyncFetcher+AsyncFetcher.auto_match = True+@pytest_httpbin.use_class_based_httpbin@pytest.mark.asyncioclass TestAsyncFetcher:@pytest.fixture(scope="class")def fetcher(self):- return AsyncFetcher(auto_match=True)+ return AsyncFetcher@pytest.fixture(scope="class")def urls(self, httpbin):diff --git a/tests/fetchers/async/test_playwright.py b/tests/fetchers/async/test_playwright.pyindex cf29ebf..ff50d09 100644--- a/tests/fetchers/async/test_playwright.py+++ b/tests/fetchers/async/test_playwright.py@@ -3,12 +3,14 @@ import pytest_httpbinfrom scrapling import PlayWrightFetcher+PlayWrightFetcher.auto_match = True+@pytest_httpbin.use_class_based_httpbinclass TestPlayWrightFetcherAsync:@pytest.fixturedef fetcher(self):- return PlayWrightFetcher(auto_match=False)+ return PlayWrightFetcher@pytest.fixturedef urls(self, httpbin):diff --git a/tests/fetchers/sync/test_camoufox.py b/tests/fetchers/sync/test_camoufox.pyindex 33800f4..c613c58 100644--- a/tests/fetchers/sync/test_camoufox.py+++ b/tests/fetchers/sync/test_camoufox.py@@ -3,13 +3,15 @@ import pytest_httpbinfrom scrapling import StealthyFetcher+StealthyFetcher.auto_match = True+@pytest_httpbin.use_class_based_httpbinclass TestStealthyFetcher:@pytest.fixture(scope="class")def fetcher(self):"""Fixture to create a StealthyFetcher instance for the entire test class"""- return StealthyFetcher(auto_match=False)+ return StealthyFetcher@pytest.fixture(autouse=True)def setup_urls(self, httpbin):diff --git a/tests/fetchers/sync/test_httpx.py b/tests/fetchers/sync/test_httpx.pyindex 9f5ca80..0a1abd8 100644--- a/tests/fetchers/sync/test_httpx.py+++ b/tests/fetchers/sync/test_httpx.py@@ -3,13 +3,15 @@ import pytest_httpbinfrom scrapling import Fetcher+Fetcher.auto_match = True+@pytest_httpbin.use_class_based_httpbinclass TestFetcher:@pytest.fixture(scope="class")def fetcher(self):"""Fixture to create a Fetcher instance for the entire test class"""- return Fetcher(auto_match=False)+ return Fetcher@pytest.fixture(autouse=True)def setup_urls(self, httpbin):diff --git a/tests/fetchers/sync/test_playwright.py b/tests/fetchers/sync/test_playwright.pyindex f683402..c256d27 100644--- a/tests/fetchers/sync/test_playwright.py+++ b/tests/fetchers/sync/test_playwright.py@@ -3,6 +3,8 @@ import pytest_httpbinfrom scrapling import PlayWrightFetcher+PlayWrightFetcher.auto_match = True+@pytest_httpbin.use_class_based_httpbinclass TestPlayWrightFetcher:@@ -10,7 +12,7 @@ class TestPlayWrightFetcher:@pytest.fixture(scope="class")def fetcher(self):"""Fixture to create a StealthyFetcher instance for the entire test class"""- return PlayWrightFetcher(auto_match=False)+ return PlayWrightFetcher@pytest.fixture(autouse=True)def setup_urls(self, httpbin):