Skip to content

Commit 7eeaab3

Browse files
committed
tests(Window): For Window.default_option_scope
1 parent 7d542d1 commit 7eeaab3

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
@@ -304,7 +304,7 @@ def test_set_and_show_options(session: Session) -> None:
304304

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

309309
if has_gte_version("3.0"):
310310
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
@@ -341,7 +341,7 @@ def test_set_and_show_window_options(session: Session) -> None:
341341

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

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

0 commit comments

Comments
 (0)