test: Update tests to use current configuration

This commit is contained in:
Karim shoair
2025-03-26 21:56:04 +02:00
parent 8551d7eeea
commit c36baf7b4c
6 changed files with 18 additions and 6 deletions
+3 -1
View File
@@ -3,13 +3,15 @@ import pytest_httpbin
from scrapling import StealthyFetcher
StealthyFetcher.auto_match = True
@pytest_httpbin.use_class_based_httpbin
@pytest.mark.asyncio
class TestStealthyFetcher:
@pytest.fixture(scope="class")
def fetcher(self):
return StealthyFetcher(auto_match=False)
return StealthyFetcher
@pytest.fixture(scope="class")
def urls(self, httpbin):
+3 -1
View File
@@ -3,13 +3,15 @@ import pytest_httpbin
from scrapling.fetchers import AsyncFetcher
AsyncFetcher.auto_match = True
@pytest_httpbin.use_class_based_httpbin
@pytest.mark.asyncio
class TestAsyncFetcher:
@pytest.fixture(scope="class")
def fetcher(self):
return AsyncFetcher(auto_match=True)
return AsyncFetcher
@pytest.fixture(scope="class")
def urls(self, httpbin):
+3 -1
View File
@@ -3,12 +3,14 @@ import pytest_httpbin
from scrapling import PlayWrightFetcher
PlayWrightFetcher.auto_match = True
@pytest_httpbin.use_class_based_httpbin
class TestPlayWrightFetcherAsync:
@pytest.fixture
def fetcher(self):
return PlayWrightFetcher(auto_match=False)
return PlayWrightFetcher
@pytest.fixture
def urls(self, httpbin):