Karim shoair commited on
Commit
cf6e136
·
1 Parent(s): 906b02a

tests: change test accordingly

Browse files
tests/fetchers/sync/test_requests_session.py CHANGED
@@ -1,7 +1,7 @@
1
  import pytest
2
 
3
 
4
- from scrapling.engines.static import FetcherSession, FetcherClient
5
 
6
 
7
  class TestFetcherSession:
@@ -15,9 +15,8 @@ class TestFetcherSession:
15
  stealthy_headers=True
16
  )
17
 
18
- assert session.default_timeout == 30
19
- assert session.default_retries == 3
20
- assert session.stealth is True
21
 
22
  def test_fetcher_session_context_manager(self):
23
  """Test FetcherSession as a context manager"""
@@ -44,4 +43,3 @@ class TestFetcherSession:
44
  # Should not have context manager methods
45
  assert client.__enter__ is None
46
  assert client.__exit__ is None
47
- assert client._curl_session is True # Special marker
 
1
  import pytest
2
 
3
 
4
+ from scrapling.engines.static import _SyncSessionLogic as FetcherSession, FetcherClient
5
 
6
 
7
  class TestFetcherSession:
 
15
  stealthy_headers=True
16
  )
17
 
18
+ assert session._default_timeout == 30
19
+ assert session._default_retries == 3
 
20
 
21
  def test_fetcher_session_context_manager(self):
22
  """Test FetcherSession as a context manager"""
 
43
  # Should not have context manager methods
44
  assert client.__enter__ is None
45
  assert client.__exit__ is None