1616from tmuxp .cli import load_plugins
1717from tmuxp .workspacebuilder import WorkspaceBuilder
1818
19- from . import example_dir , fixtures_dir
19+ from . import EXAMPLE_PATH , FIXTURES_PATH
2020from .fixtures ._util import load_fixture
2121
2222
@@ -405,7 +405,7 @@ def test_automatic_rename_option(session):
405405
406406def test_blank_pane_count (session ):
407407 """:todo: Verify blank panes of various types build into workspaces."""
408- yaml_config_file = example_dir / "blank-panes.yaml"
408+ yaml_config_file = EXAMPLE_PATH / "blank-panes.yaml"
409409 test_config = kaptan .Kaptan ().import_config (str (yaml_config_file )).get ()
410410 test_config = config .expand (test_config )
411411 builder = WorkspaceBuilder (sconf = test_config )
@@ -589,8 +589,8 @@ def test_before_load_throw_error_if_retcode_error(server):
589589 config_script_fails = load_fixture ("workspacebuilder/config_script_fails.yaml" )
590590 sconfig = kaptan .Kaptan (handler = "yaml" )
591591 yaml = config_script_fails .format (
592- fixtures_dir = fixtures_dir ,
593- script_failed = fixtures_dir / "script_failed.sh" ,
592+ fixtures_dir = FIXTURES_PATH ,
593+ script_failed = FIXTURES_PATH / "script_failed.sh" ,
594594 )
595595
596596 sconfig = sconfig .import_config (yaml ).get ()
@@ -615,8 +615,8 @@ def test_before_load_throw_error_if_file_not_exists(server):
615615 )
616616 sconfig = kaptan .Kaptan (handler = "yaml" )
617617 yaml = config_script_not_exists .format (
618- fixtures_dir = fixtures_dir ,
619- script_not_exists = fixtures_dir / "script_not_exists.sh" ,
618+ fixtures_dir = FIXTURES_PATH ,
619+ script_not_exists = FIXTURES_PATH / "script_not_exists.sh" ,
620620 )
621621 sconfig = sconfig .import_config (yaml ).get ()
622622 sconfig = config .expand (sconfig )
@@ -639,11 +639,11 @@ def test_before_load_true_if_test_passes(server):
639639 config_script_completes = load_fixture (
640640 "workspacebuilder/config_script_completes.yaml"
641641 )
642- script_complete_sh = fixtures_dir / "script_complete.sh"
642+ script_complete_sh = FIXTURES_PATH / "script_complete.sh"
643643 assert script_complete_sh .exists ()
644644 sconfig = kaptan .Kaptan (handler = "yaml" )
645645 yaml = config_script_completes .format (
646- fixtures_dir = fixtures_dir ,
646+ fixtures_dir = FIXTURES_PATH ,
647647 script_complete = script_complete_sh ,
648648 )
649649
@@ -661,11 +661,11 @@ def test_before_load_true_if_test_passes_with_args(server):
661661 config_script_completes = load_fixture (
662662 "workspacebuilder/config_script_completes.yaml"
663663 )
664- script_complete_sh = fixtures_dir / "script_complete.sh"
664+ script_complete_sh = FIXTURES_PATH / "script_complete.sh"
665665 assert script_complete_sh .exists ()
666666 sconfig = kaptan .Kaptan (handler = "yaml" )
667667 yaml = config_script_completes .format (
668- fixtures_dir = fixtures_dir , script_complete = script_complete_sh
668+ fixtures_dir = FIXTURES_PATH , script_complete = script_complete_sh
669669 )
670670
671671 sconfig = sconfig .import_config (yaml ).get ()
0 commit comments