test: update tests accordingly
This commit is contained in:
@@ -43,7 +43,7 @@ class TestAsyncDynamicSession:
|
|||||||
assert stats["total_pages"] <= 3
|
assert stats["total_pages"] <= 3
|
||||||
|
|
||||||
# After exit, should be closed
|
# After exit, should be closed
|
||||||
assert session._closed is True
|
assert session._is_alive is False
|
||||||
|
|
||||||
# Should raise RuntimeError when used after closing
|
# Should raise RuntimeError when used after closing
|
||||||
with pytest.raises(RuntimeError):
|
with pytest.raises(RuntimeError):
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ class TestAsyncStealthySession:
|
|||||||
assert stats["total_pages"] <= 3
|
assert stats["total_pages"] <= 3
|
||||||
|
|
||||||
# After exit, should be closed
|
# After exit, should be closed
|
||||||
assert session._closed is True
|
assert session._is_alive is False
|
||||||
|
|
||||||
# Should raise RuntimeError when used after closing
|
# Should raise RuntimeError when used after closing
|
||||||
with pytest.raises(RuntimeError):
|
with pytest.raises(RuntimeError):
|
||||||
|
|||||||
Reference in New Issue
Block a user