File tree 2 files changed +5
-11
lines changed
2 files changed +5
-11
lines changed Original file line number Diff line number Diff line change @@ -44,10 +44,5 @@ def config_customize():
44
44
45
45
46
46
@pytest .fixture ()
47
- def changelog_path () -> str :
47
+ def changelog_path (tmp_commitizen_project ) -> str :
48
48
return os .path .join (os .getcwd (), "CHANGELOG.md" )
49
-
50
-
51
- @pytest .fixture ()
52
- def config_path () -> str :
53
- return os .path .join (os .getcwd (), "pyproject.toml" )
Original file line number Diff line number Diff line change @@ -18,11 +18,10 @@ def tmp_git_project(tmpdir):
18
18
19
19
@pytest .fixture (scope = "function" )
20
20
def tmp_commitizen_project (tmp_git_project ):
21
- with tmp_git_project .as_cwd ():
22
- tmp_commitizen_cfg_file = tmp_git_project .join ("pyproject.toml" )
23
- tmp_commitizen_cfg_file .write ("[tool.commitizen]\n " 'version="0.1.0"\n ' )
21
+ tmp_commitizen_cfg_file = tmp_git_project .join ("pyproject.toml" )
22
+ tmp_commitizen_cfg_file .write ("[tool.commitizen]\n " 'version="0.1.0"\n ' )
24
23
25
- yield tmp_git_project
24
+ yield tmp_git_project
26
25
27
26
28
27
def _get_gpg_keyid (signer_mail ):
@@ -71,5 +70,5 @@ def config():
71
70
72
71
73
72
@pytest .fixture ()
74
- def config_path () -> str :
73
+ def config_path (tmp_commitizen_project ) -> str :
75
74
return os .path .join (os .getcwd (), "pyproject.toml" )
You can’t perform that action at this time.
0 commit comments