@@ -334,7 +334,7 @@ class OptionDataclassTestFixture(t.NamedTuple):
334
334
test_id : str
335
335
336
336
# test data
337
- option_data : t .List [str ] # option data (raw)
337
+ mocked_cmd_stdout : t .List [str ] # option data (raw)
338
338
tmux_option : str # e.g. terminal-features
339
339
340
340
# results
@@ -345,7 +345,7 @@ class OptionDataclassTestFixture(t.NamedTuple):
345
345
TEST_FIXTURES : t .List [OptionDataclassTestFixture ] = [
346
346
OptionDataclassTestFixture (
347
347
test_id = "terminal-features" ,
348
- option_data = textwrap .dedent (
348
+ mocked_cmd_stdout = textwrap .dedent (
349
349
"""
350
350
terminal-features[0] xterm*:clipboard:ccolour:cstyle:focus
351
351
terminal-features[1] screen*:title
@@ -362,7 +362,7 @@ class OptionDataclassTestFixture(t.NamedTuple):
362
362
),
363
363
OptionDataclassTestFixture (
364
364
test_id = "command-alias" ,
365
- option_data = textwrap .dedent (
365
+ mocked_cmd_stdout = textwrap .dedent (
366
366
"""
367
367
command-alias[0] split-pane=split-window
368
368
command-alias[1] splitp=split-window
@@ -395,17 +395,17 @@ class OptionDataclassTestFixture(t.NamedTuple):
395
395
TEST_FIXTURES ,
396
396
ids = [test .test_id for test in TEST_FIXTURES ],
397
397
)
398
- def test_option_dataclass_fixture (
398
+ def test_mocked_cmd_stdoutclass_fixture (
399
399
monkeypatch : pytest .MonkeyPatch ,
400
400
test_id : str ,
401
- option_data : t .List [str ],
401
+ mocked_cmd_stdout : t .List [str ],
402
402
tmux_option : str ,
403
403
expected : t .Any ,
404
404
dataclass_attribute : str ,
405
405
server : "Server" ,
406
406
) -> None :
407
407
"""Parametrized test grid for options."""
408
- monkeypatch .setattr (server , "cmd" , fake_cmd (stdout = option_data ))
408
+ monkeypatch .setattr (server , "cmd" , fake_cmd (stdout = mocked_cmd_stdout ))
409
409
410
410
_options = server ._show_options ()
411
411
assert any (tmux_option in k for k in _options )
@@ -423,7 +423,7 @@ def test_option_dataclass_fixture(
423
423
def test_show_option_pane_fixture (
424
424
monkeypatch : pytest .MonkeyPatch ,
425
425
test_id : str ,
426
- option_data : t .List [str ],
426
+ mocked_cmd_stdout : t .List [str ],
427
427
tmux_option : str ,
428
428
expected : t .Any ,
429
429
dataclass_attribute : str ,
@@ -434,7 +434,7 @@ def test_show_option_pane_fixture(
434
434
window = session .new_window (window_name = "test" )
435
435
pane = window .split_window (attach = False )
436
436
437
- monkeypatch .setattr (pane , "cmd" , fake_cmd (stdout = option_data ))
437
+ monkeypatch .setattr (pane , "cmd" , fake_cmd (stdout = mocked_cmd_stdout ))
438
438
439
439
result = pane .show_option (tmux_option )
440
440
0 commit comments