Skip to content

Commit

Permalink
test: Clean up path fixtures
Browse files Browse the repository at this point in the history
config_path and changelog_path rely on the modified CWD provided by
tmp_commitizen_project, so they should use this fixture.
  • Loading branch information
robertschweizer committed May 2, 2023
1 parent c0ff3af commit c780f4e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
7 changes: 1 addition & 6 deletions tests/commands/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")


Expand Down

0 comments on commit c780f4e

Please sign in to comment.