From 3ae9eae300e17cf41f1b3c24e77245aa5ba6bbf6 Mon Sep 17 00:00:00 2001 From: Bouwe Andela Date: Fri, 29 Sep 2023 22:55:47 +0200 Subject: [PATCH] Replace the deprecated .project with .project_path --- tests/test_project.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/test_project.py b/tests/test_project.py index dab64f45..c1a00c8f 100644 --- a/tests/test_project.py +++ b/tests/test_project.py @@ -14,8 +14,8 @@ def test_project_folder(cookies): assert project.exit_code == 0 assert project.exception is None - assert project.project.basename == 'my-python-project' - assert project.project.isdir() + assert project.project_path.name == 'my-python-project' + assert project.project_path.is_dir() def run(args: Sequence[str], dirpath: os.PathLike) -> subprocess.CompletedProcess: @@ -47,9 +47,9 @@ def baked_with_development_dependencies(cookies_session, project_env_bin_dir): bin_dir = project_env_bin_dir latest_pip_output = run([f'{bin_dir}python', '-m', 'pip', 'install', '--upgrade', 'pip', 'setuptools'], result.project_path) assert latest_pip_output.returncode == 0 - pip_output = run([f'{bin_dir}python', '-m', 'pip', 'install', '--editable', '.[dev]'], result.project) + pip_output = run([f'{bin_dir}python', '-m', 'pip', 'install', '--editable', '.[dev]'], result.project_path) assert pip_output.returncode == 0 - return result.project + return result.project_path def test_pytest(baked_with_development_dependencies, project_env_bin_dir):