We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba59eae commit 7397e94Copy full SHA for 7397e94
tests/legacy_api/test_window.py
@@ -181,11 +181,12 @@ def test_kill_window(session: Session) -> None:
181
182
w = session.attached_window
183
184
- w.get("window_id")
+ assert isinstance(w.get("window_id"), str)
185
+ assert len(session.windows.filter(window_id=w.get("window_id"))) == 1
186
187
w.kill_window()
- with pytest.raises(IndexError):
188
+
189
+ assert len(session.windows.filter(window_id=w.get("window_id"))) == 0
190
191
192
def test_show_window_options(session: Session) -> None:
0 commit comments