File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -386,3 +386,27 @@ def test_option_dataclass_fixture(
386
386
assert options
387
387
assert hasattr (options , dataclass_attribute )
388
388
assert getattr (options , dataclass_attribute , None ) == expected
389
+
390
+
391
+ @pytest .mark .parametrize (
392
+ list (OptionDataclassTestFixture ._fields ),
393
+ TEST_FIXTURES ,
394
+ ids = [test .test_id for test in TEST_FIXTURES ],
395
+ )
396
+ def test_options_pane_fixture (
397
+ monkeypatch : pytest .MonkeyPatch ,
398
+ test_id : str ,
399
+ option_data : t .List [str ],
400
+ tmux_option : str ,
401
+ expected : t .Any ,
402
+ dataclass_attribute : str ,
403
+ server : "Server" ,
404
+ ) -> None :
405
+ """Test Pane.show_option(s)?."""
406
+ session = server .new_session (session_name = "test" )
407
+ window = session .new_window (window_name = "test" )
408
+ pane = window .split_window (attach = False )
409
+
410
+ monkeypatch .setattr (pane , "cmd" , fake_cmd (stdout = option_data ))
411
+
412
+ assert TmuxArray (expected ) in pane .show_option ("terminal-features" )
You can’t perform that action at this time.
0 commit comments