@@ -405,8 +405,8 @@ 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 = os . path . join ( example_dir , "blank-panes.yaml" )
409- test_config = kaptan .Kaptan ().import_config (yaml_config_file ).get ()
408+ yaml_config_file = example_dir / "blank-panes.yaml"
409+ test_config = kaptan .Kaptan ().import_config (str ( yaml_config_file ) ).get ()
410410 test_config = config .expand (test_config )
411411 builder = WorkspaceBuilder (sconf = test_config )
412412 builder .build (session = session )
@@ -590,7 +590,7 @@ def test_before_load_throw_error_if_retcode_error(server):
590590 sconfig = kaptan .Kaptan (handler = "yaml" )
591591 yaml = config_script_fails .format (
592592 fixtures_dir = fixtures_dir ,
593- script_failed = os . path . join ( fixtures_dir , "script_failed.sh" ) ,
593+ script_failed = fixtures_dir / "script_failed.sh" ,
594594 )
595595
596596 sconfig = sconfig .import_config (yaml ).get ()
@@ -616,7 +616,7 @@ def test_before_load_throw_error_if_file_not_exists(server):
616616 sconfig = kaptan .Kaptan (handler = "yaml" )
617617 yaml = config_script_not_exists .format (
618618 fixtures_dir = fixtures_dir ,
619- script_not_exists = os . path . join ( fixtures_dir , "script_not_exists.sh" ) ,
619+ script_not_exists = fixtures_dir / "script_not_exists.sh" ,
620620 )
621621 sconfig = sconfig .import_config (yaml ).get ()
622622 sconfig = config .expand (sconfig )
@@ -639,11 +639,12 @@ def test_before_load_true_if_test_passes(server):
639639 config_script_completes = load_fixture (
640640 "workspacebuilder/config_script_completes.yaml"
641641 )
642- assert os .path .exists (os .path .join (fixtures_dir , "script_complete.sh" ))
642+ script_complete_sh = fixtures_dir / "script_complete.sh"
643+ assert script_complete_sh .exists ()
643644 sconfig = kaptan .Kaptan (handler = "yaml" )
644645 yaml = config_script_completes .format (
645646 fixtures_dir = fixtures_dir ,
646- script_complete = os . path . join ( fixtures_dir , "script_complete.sh" ) ,
647+ script_complete = script_complete_sh ,
647648 )
648649
649650 sconfig = sconfig .import_config (yaml ).get ()
@@ -660,12 +661,11 @@ def test_before_load_true_if_test_passes_with_args(server):
660661 config_script_completes = load_fixture (
661662 "workspacebuilder/config_script_completes.yaml"
662663 )
663-
664- assert os . path . exists (os . path . join ( fixtures_dir , "script_complete.sh" ) )
664+ script_complete_sh = fixtures_dir / "script_complete.sh"
665+ assert script_complete_sh . exists ()
665666 sconfig = kaptan .Kaptan (handler = "yaml" )
666667 yaml = config_script_completes .format (
667- fixtures_dir = fixtures_dir ,
668- script_complete = os .path .join (fixtures_dir , "script_complete.sh" ) + " -v" ,
668+ fixtures_dir = fixtures_dir , script_complete = script_complete_sh
669669 )
670670
671671 sconfig = sconfig .import_config (yaml ).get ()
0 commit comments