diff --git a/tests/commands/conftest.py b/tests/commands/conftest.py index 91931849b2..c62af685fa 100644 --- a/tests/commands/conftest.py +++ b/tests/commands/conftest.py @@ -44,10 +44,5 @@ def config_customize(): @pytest.fixture() -def changelog_path() -> str: +def changelog_path(tmp_commitizen_project) -> str: return os.path.join(os.getcwd(), "CHANGELOG.md") - - -@pytest.fixture() -def config_path() -> str: - return os.path.join(os.getcwd(), "pyproject.toml") diff --git a/tests/conftest.py b/tests/conftest.py index 564fddbc70..d070140133 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -122,7 +122,7 @@ def config(): @pytest.fixture() -def config_path() -> str: +def config_path(tmp_commitizen_project) -> str: return os.path.join(os.getcwd(), "pyproject.toml")