Skip to content

Commit 38f7bf3

Browse files
committed
tests(legacy API[window]): Update for newest behavior
1 parent 9e3ed58 commit 38f7bf3

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tests/legacy_api/test_window.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -181,11 +181,12 @@ def test_kill_window(session: Session) -> None:
181181

182182
w = session.attached_window
183183

184-
w.get("window_id")
184+
assert isinstance(w.get("window_id"), str)
185+
assert len(session.windows.filter(window_id=w.get("window_id"))) == 1
185186

186187
w.kill_window()
187-
with pytest.raises(IndexError):
188-
w.get("window_id")
188+
189+
assert len(session.windows.filter(window_id=w.get("window_id"))) == 0
189190

190191

191192
def test_show_window_options(session: Session) -> None:

0 commit comments

Comments
 (0)