Skip to content

Commit f816328

Browse files
committed
tests(Window): For Window.default_option_scope
1 parent 067329e commit f816328

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
@@ -321,7 +321,7 @@ def test_set_and_show_window_options(session: Session) -> None:
321321

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

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

0 commit comments

Comments
 (0)