Karim shoair commited on
Commit
752ca7e
·
1 Parent(s): 1803348

test: update tests accordingly

Browse files
tests/fetchers/async/test_dynamic_session.py CHANGED
@@ -43,7 +43,7 @@ class TestAsyncDynamicSession:
43
  assert stats["total_pages"] <= 3
44
 
45
  # After exit, should be closed
46
- assert session._closed is True
47
 
48
  # Should raise RuntimeError when used after closing
49
  with pytest.raises(RuntimeError):
 
43
  assert stats["total_pages"] <= 3
44
 
45
  # After exit, should be closed
46
+ assert session._is_alive is False
47
 
48
  # Should raise RuntimeError when used after closing
49
  with pytest.raises(RuntimeError):
tests/fetchers/async/test_stealth_session.py CHANGED
@@ -44,7 +44,7 @@ class TestAsyncStealthySession:
44
  assert stats["total_pages"] <= 3
45
 
46
  # After exit, should be closed
47
- assert session._closed is True
48
 
49
  # Should raise RuntimeError when used after closing
50
  with pytest.raises(RuntimeError):
 
44
  assert stats["total_pages"] <= 3
45
 
46
  # After exit, should be closed
47
+ assert session._is_alive is False
48
 
49
  # Should raise RuntimeError when used after closing
50
  with pytest.raises(RuntimeError):