From af7ae9150b6f013653ccf1ab261880accf5acd81 Mon Sep 17 00:00:00 2001 From: chasserb Date: Tue, 19 Sep 2023 21:08:56 -0400 Subject: [PATCH] Drop str --- tests/test_main.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/test_main.py b/tests/test_main.py index d6d8e2dc..cd3900e9 100644 --- a/tests/test_main.py +++ b/tests/test_main.py @@ -91,7 +91,7 @@ def test_cli_analyze_correct_arguments_nothing_to_analyze_not_looking(tmpdir): project_name = "testing" # create a reference to the internal # .chasten directory that supports testing - configuration_directory = test_one + str(Path("/.chasten")) + configuration_directory = test_one / Path(".chasten") configuration_directory_path = Path(configuration_directory) configuration_directory_path.mkdir() configuration_file = configuration_directory_path / "config.yml" @@ -122,7 +122,7 @@ def test_cli_analyze_correct_arguments_analyze_chasten_codebase(cwd): project_name = "testing" # create a reference to the internal # .chasten directory that supports testing - configuration_directory = str(cwd) + str(Path("/.chasten")) + configuration_directory = cwd / Path(".chasten") result = runner.invoke( main.cli, [ @@ -144,7 +144,7 @@ def test_cli_analyze_incorrect_arguments_no_project(cwd, tmpdir): test_one = tmpdir.mkdir("test_one") # create a reference to the internal # .chasten directory that supports testing - configuration_directory = str(cwd) + str(Path("/.chasten")) + configuration_directory = cwd / Path(".chasten") # call the analyze command result = runner.invoke( main.cli, @@ -297,7 +297,7 @@ def test_fuzz_cli_analyze_single_directory(cwd, directory): project_name = "testing" # create a reference to the internal # .chasten directory that supports testing - configuration_directory = str(cwd) + str(Path("/.chasten")) + configuration_directory = cwd / Path(".chasten") result = runner.invoke( main.cli, [