Skip to content

Commit

Permalink
Replace the deprecated .project with .project_path
Browse files Browse the repository at this point in the history
  • Loading branch information
bouweandela authored and egpbos committed Oct 17, 2023
1 parent 6c38999 commit 3ae9eae
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit 3ae9eae

Please sign in to comment.