@@ -209,81 +209,6 @@ class CLILoadFixture(t.NamedTuple):
209
209
expected_not_in_err : ExpectedOutput = None
210
210
211
211
212
- class ZshAutotitleTestFixture (t .NamedTuple ):
213
- """Test fixture for zsh auto title warning tests."""
214
-
215
- test_id : str
216
- cli_args : list [str ]
217
-
218
-
219
- class LogFileTestFixture (t .NamedTuple ):
220
- """Test fixture for log file tests."""
221
-
222
- test_id : str
223
- cli_args : list [str ]
224
-
225
-
226
- class PluginVersionTestFixture (t .NamedTuple ):
227
- """Test fixture for plugin version tests."""
228
-
229
- test_id : str
230
- cli_args : list [str ]
231
- inputs : list [str ]
232
-
233
-
234
- class PluginMissingTestFixture (t .NamedTuple ):
235
- """Test fixture for plugin missing tests."""
236
-
237
- test_id : str
238
- cli_args : list [str ]
239
-
240
-
241
- ZSH_AUTOTITLE_TEST_FIXTURES : list [ZshAutotitleTestFixture ] = [
242
- ZshAutotitleTestFixture (
243
- test_id = "load_dot_detached" ,
244
- cli_args = ["load" , "." , "-d" ],
245
- ),
246
- ZshAutotitleTestFixture (
247
- test_id = "load_yaml_detached" ,
248
- cli_args = ["load" , ".tmuxp.yaml" , "-d" ],
249
- ),
250
- ]
251
-
252
-
253
- LOG_FILE_TEST_FIXTURES : list [LogFileTestFixture ] = [
254
- LogFileTestFixture (
255
- test_id = "load_with_log_file" ,
256
- cli_args = ["load" , "." , "--log-file" , "log.txt" , "-d" ],
257
- ),
258
- ]
259
-
260
-
261
- PLUGIN_VERSION_SKIP_TEST_FIXTURES : list [PluginVersionTestFixture ] = [
262
- PluginVersionTestFixture (
263
- test_id = "skip_version_fail" ,
264
- cli_args = ["load" , "tests/fixtures/workspace/builder/plugin_versions_fail.yaml" ],
265
- inputs = ["y\n " ],
266
- ),
267
- ]
268
-
269
-
270
- PLUGIN_VERSION_NO_SKIP_TEST_FIXTURES : list [PluginVersionTestFixture ] = [
271
- PluginVersionTestFixture (
272
- test_id = "no_skip_version_fail" ,
273
- cli_args = ["load" , "tests/fixtures/workspace/builder/plugin_versions_fail.yaml" ],
274
- inputs = ["n\n " ],
275
- ),
276
- ]
277
-
278
-
279
- PLUGIN_MISSING_TEST_FIXTURES : list [PluginMissingTestFixture ] = [
280
- PluginMissingTestFixture (
281
- test_id = "missing_plugin" ,
282
- cli_args = ["load" , "tests/fixtures/workspace/builder/plugin_missing_fail.yaml" ],
283
- ),
284
- ]
285
-
286
-
287
212
TEST_LOAD_FIXTURES : list [CLILoadFixture ] = [
288
213
CLILoadFixture (
289
214
test_id = "dir-relative-dot-samedir" ,
@@ -434,6 +359,25 @@ def test_regression_00132_session_name_with_dots(
434
359
cli .cli (["load" , * cli_args ])
435
360
436
361
362
+ class ZshAutotitleTestFixture (t .NamedTuple ):
363
+ """Test fixture for zsh auto title warning tests."""
364
+
365
+ test_id : str
366
+ cli_args : list [str ]
367
+
368
+
369
+ ZSH_AUTOTITLE_TEST_FIXTURES : list [ZshAutotitleTestFixture ] = [
370
+ ZshAutotitleTestFixture (
371
+ test_id = "load_dot_detached" ,
372
+ cli_args = ["load" , "." , "-d" ],
373
+ ),
374
+ ZshAutotitleTestFixture (
375
+ test_id = "load_yaml_detached" ,
376
+ cli_args = ["load" , ".tmuxp.yaml" , "-d" ],
377
+ ),
378
+ ]
379
+
380
+
437
381
@pytest .mark .parametrize (
438
382
list (ZshAutotitleTestFixture ._fields ),
439
383
ZSH_AUTOTITLE_TEST_FIXTURES ,
@@ -494,6 +438,21 @@ def test_load_zsh_autotitle_warning(
494
438
assert "Please set" not in result .out
495
439
496
440
441
+ class LogFileTestFixture (t .NamedTuple ):
442
+ """Test fixture for log file tests."""
443
+
444
+ test_id : str
445
+ cli_args : list [str ]
446
+
447
+
448
+ LOG_FILE_TEST_FIXTURES : list [LogFileTestFixture ] = [
449
+ LogFileTestFixture (
450
+ test_id = "load_with_log_file" ,
451
+ cli_args = ["load" , "." , "--log-file" , "log.txt" , "-d" ],
452
+ ),
453
+ ]
454
+
455
+
497
456
@pytest .mark .parametrize (
498
457
list (LogFileTestFixture ._fields ),
499
458
LOG_FILE_TEST_FIXTURES ,
@@ -555,6 +514,23 @@ def test_load_plugins(
555
514
assert plugin .__class__ in test_plugin_class_types
556
515
557
516
517
+ class PluginVersionTestFixture (t .NamedTuple ):
518
+ """Test fixture for plugin version tests."""
519
+
520
+ test_id : str
521
+ cli_args : list [str ]
522
+ inputs : list [str ]
523
+
524
+
525
+ PLUGIN_VERSION_SKIP_TEST_FIXTURES : list [PluginVersionTestFixture ] = [
526
+ PluginVersionTestFixture (
527
+ test_id = "skip_version_fail" ,
528
+ cli_args = ["load" , "tests/fixtures/workspace/builder/plugin_versions_fail.yaml" ],
529
+ inputs = ["y\n " ],
530
+ ),
531
+ ]
532
+
533
+
558
534
@pytest .mark .skip ("Not sure how to clean up the tmux session this makes" )
559
535
@pytest .mark .parametrize (
560
536
list (PluginVersionTestFixture ._fields ),
@@ -577,6 +553,15 @@ def test_load_plugins_version_fail_skip(
577
553
assert "[Loading]" in result .out
578
554
579
555
556
+ PLUGIN_VERSION_NO_SKIP_TEST_FIXTURES : list [PluginVersionTestFixture ] = [
557
+ PluginVersionTestFixture (
558
+ test_id = "no_skip_version_fail" ,
559
+ cli_args = ["load" , "tests/fixtures/workspace/builder/plugin_versions_fail.yaml" ],
560
+ inputs = ["n\n " ],
561
+ ),
562
+ ]
563
+
564
+
580
565
@pytest .mark .parametrize (
581
566
list (PluginVersionTestFixture ._fields ),
582
567
PLUGIN_VERSION_NO_SKIP_TEST_FIXTURES ,
@@ -601,6 +586,21 @@ def test_load_plugins_version_fail_no_skip(
601
586
assert "[Not Skipping]" in result .out
602
587
603
588
589
+ class PluginMissingTestFixture (t .NamedTuple ):
590
+ """Test fixture for plugin missing tests."""
591
+
592
+ test_id : str
593
+ cli_args : list [str ]
594
+
595
+
596
+ PLUGIN_MISSING_TEST_FIXTURES : list [PluginMissingTestFixture ] = [
597
+ PluginMissingTestFixture (
598
+ test_id = "missing_plugin" ,
599
+ cli_args = ["load" , "tests/fixtures/workspace/builder/plugin_missing_fail.yaml" ],
600
+ ),
601
+ ]
602
+
603
+
604
604
@pytest .mark .parametrize (
605
605
list (PluginMissingTestFixture ._fields ),
606
606
PLUGIN_MISSING_TEST_FIXTURES ,
0 commit comments