Skip to content

Commit de1c519

Browse files
committed
!squash test wip
1 parent 5faa80d commit de1c519

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

tests/test_options.py

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,3 +386,27 @@ def test_option_dataclass_fixture(
386386
assert options
387387
assert hasattr(options, dataclass_attribute)
388388
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")

0 commit comments

Comments
 (0)