Skip to content

Commit c393a13

Browse files
committed
tests(Window): For Window.default_option_scope
1 parent 2ad8682 commit c393a13

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/legacy_api/test_window.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ def test_set_and_show_options(session: Session) -> None:
299299

300300
# By default, show-options will session scope, even if target is a window
301301
with pytest.raises(KeyError):
302-
assert window._show_options()["main-pane-height"] == 40
302+
assert window._show_options(scope=OptionScope.Session)["main-pane-height"] == 40
303303

304304
if has_gte_version("3.0"):
305305
assert window._show_option("main-pane-height") == 40

tests/test_window.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ def test_set_and_show_window_options(session: Session) -> None:
316316

317317
# By default, show-options will session scope, even if target is a window
318318
with pytest.raises(KeyError):
319-
assert window._show_options()["main-pane-height"] == 40
319+
assert window._show_options(scope=OptionScope.Session)["main-pane-height"] == 40
320320

321321
if has_gte_version("3.0"):
322322
assert window._show_option("main-pane-height") == 40

0 commit comments

Comments
 (0)