test: update tests accordingly
This commit is contained in:
1 parent
6a73f9dcd7
commit
9eb5f68fcb
2 files changed
+2
-2
No files matched your search
@@ -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):
|
||||
|
||||
@@ -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):
|
||||
|
||||
Reference in new issue
Block a user