Skip to content
This repository has been archived by the owner on Nov 6, 2024. It is now read-only.

Commit

Permalink
Fix typo project_path -> project_dir
Browse files Browse the repository at this point in the history
  • Loading branch information
GenevieveBuckley committed Jun 13, 2024
1 parent 80adc47 commit 796a0e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_create_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,8 @@ def test_pre_commit_validity(copie, include_reader_plugin, include_writer_plugin
"install_precommit": True,
}
)
result.project_path.joinpath("setup.cfg").is_file()
result.project_dir.joinpath("setup.cfg").is_file()
try:
subprocess.run(["pre-commit", "run", "--all", "--show-diff-on-failure"], cwd=str(result.project_path), check=True, capture_output=True)
subprocess.run(["pre-commit", "run", "--all", "--show-diff-on-failure"], cwd=str(result.project_dir), check=True, capture_output=True)
except subprocess.CalledProcessError as e:
pytest.fail(f"pre-commit failed with output:\n{e.stdout.decode()}\nerror:\n{e.stderr.decode()}")

0 comments on commit 796a0e4

Please sign in to comment.