From 796a0e4c751ebb949f5e1a3d13a251ecbd2a8344 Mon Sep 17 00:00:00 2001 From: Genevieve Buckley <30920819+GenevieveBuckley@users.noreply.github.com> Date: Thu, 13 Jun 2024 18:16:54 +1000 Subject: [PATCH] Fix typo project_path -> project_dir --- tests/test_create_template.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_create_template.py b/tests/test_create_template.py index eff70f4..01ee908 100644 --- a/tests/test_create_template.py +++ b/tests/test_create_template.py @@ -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()}")