Skip to content

🕷️ 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

test: update tests accordingly

Karim shoair9eb5f68fcb53
diff --git a/tests/fetchers/async/test_dynamic_session.py b/tests/fetchers/async/test_dynamic_session.py
index c403017..95bb289 100644
--- a/tests/fetchers/async/test_dynamic_session.py
+++ b/tests/fetchers/async/test_dynamic_session.py
@@ -43,7 +43,7 @@ class TestAsyncDynamicSession:
assert stats["total_pages"] <= 3
# After exit, should be closed
- assert session._closed is True
+ assert session._is_alive is False
# Should raise RuntimeError when used after closing
with pytest.raises(RuntimeError):
diff --git a/tests/fetchers/async/test_stealth_session.py b/tests/fetchers/async/test_stealth_session.py
index 140742d..db79002 100644
--- a/tests/fetchers/async/test_stealth_session.py
+++ b/tests/fetchers/async/test_stealth_session.py
@@ -44,7 +44,7 @@ class TestAsyncStealthySession:
assert stats["total_pages"] <= 3
# After exit, should be closed
- assert session._closed is True
+ assert session._is_alive is False
# Should raise RuntimeError when used after closing
with pytest.raises(RuntimeError):