@@ -16,7 +16,7 @@ def changelog_path() -> str:
16
16
17
17
18
18
@pytest .mark .usefixtures ("tmp_commitizen_project" )
19
- def test_changlog_on_empty_project (mocker ):
19
+ def test_changelog_on_empty_project (mocker ):
20
20
testargs = ["cz" , "changelog" , "--dry-run" ]
21
21
mocker .patch .object (sys , "argv" , testargs )
22
22
@@ -25,7 +25,7 @@ def test_changlog_on_empty_project(mocker):
25
25
26
26
27
27
@pytest .mark .usefixtures ("tmp_commitizen_project" )
28
- def test_changlog_from_version_zero_point_two (mocker , capsys ):
28
+ def test_changelog_from_version_zero_point_two (mocker , capsys ):
29
29
create_file_and_commit ("feat: new file" )
30
30
create_file_and_commit ("refactor: not in changelog" )
31
31
@@ -48,7 +48,7 @@ def test_changlog_from_version_zero_point_two(mocker, capsys):
48
48
49
49
50
50
@pytest .mark .usefixtures ("tmp_commitizen_project" )
51
- def test_changlog_with_different_cz (mocker , capsys ):
51
+ def test_changelog_with_different_cz (mocker , capsys ):
52
52
create_file_and_commit ("JRA-34 #comment corrected indent issue" )
53
53
create_file_and_commit ("JRA-35 #time 1w 2d 4h 30m Total work logged" )
54
54
@@ -65,7 +65,7 @@ def test_changlog_with_different_cz(mocker, capsys):
65
65
66
66
67
67
@pytest .mark .usefixtures ("tmp_commitizen_project" )
68
- def test_changlog_from_start (mocker , capsys , changelog_path ):
68
+ def test_changelog_from_start (mocker , capsys , changelog_path ):
69
69
create_file_and_commit ("feat: new file" )
70
70
create_file_and_commit ("refactor: is in changelog" )
71
71
create_file_and_commit ("Merge into master" )
@@ -84,7 +84,7 @@ def test_changlog_from_start(mocker, capsys, changelog_path):
84
84
85
85
86
86
@pytest .mark .usefixtures ("tmp_commitizen_project" )
87
- def test_changlog_replacing_unreleased_using_incremental (
87
+ def test_changelog_replacing_unreleased_using_incremental (
88
88
mocker , capsys , changelog_path
89
89
):
90
90
create_file_and_commit ("feat: add new output" )
@@ -118,7 +118,7 @@ def test_changlog_replacing_unreleased_using_incremental(
118
118
119
119
120
120
@pytest .mark .usefixtures ("tmp_commitizen_project" )
121
- def test_changlog_is_persisted_using_incremental (mocker , capsys , changelog_path ):
121
+ def test_changelog_is_persisted_using_incremental (mocker , capsys , changelog_path ):
122
122
123
123
create_file_and_commit ("feat: add new output" )
124
124
create_file_and_commit ("fix: output glitch" )
@@ -155,7 +155,7 @@ def test_changlog_is_persisted_using_incremental(mocker, capsys, changelog_path)
155
155
156
156
157
157
@pytest .mark .usefixtures ("tmp_commitizen_project" )
158
- def test_changlog_incremental_angular_sample (mocker , capsys , changelog_path ):
158
+ def test_changelog_incremental_angular_sample (mocker , capsys , changelog_path ):
159
159
with open (changelog_path , "w" ) as f :
160
160
f .write (
161
161
"# [10.0.0-next.3](https://github.com/angular/angular/compare/10.0.0-next.2...10.0.0-next.3) (2020-04-22)\n "
@@ -213,7 +213,7 @@ def test_changlog_incremental_angular_sample(mocker, capsys, changelog_path):
213
213
214
214
215
215
@pytest .mark .usefixtures ("tmp_commitizen_project" )
216
- def test_changlog_incremental_keep_a_changelog_sample (mocker , capsys , changelog_path ):
216
+ def test_changelog_incremental_keep_a_changelog_sample (mocker , capsys , changelog_path ):
217
217
with open (changelog_path , "w" ) as f :
218
218
f .write (KEEP_A_CHANGELOG )
219
219
create_file_and_commit ("irrelevant commit" )
@@ -240,7 +240,7 @@ def test_changlog_incremental_keep_a_changelog_sample(mocker, capsys, changelog_
240
240
241
241
242
242
@pytest .mark .usefixtures ("tmp_commitizen_project" )
243
- def test_changlog_hook (mocker , config ):
243
+ def test_changelog_hook (mocker , config ):
244
244
changelog_hook_mock = mocker .Mock ()
245
245
changelog_hook_mock .return_value = "cool changelog hook"
246
246
@@ -249,7 +249,7 @@ def test_changlog_hook(mocker, config):
249
249
create_file_and_commit ("Merge into master" )
250
250
251
251
changelog = Changelog (
252
- config , {"unreleased_version" : None , "incremental" : True , "dry_run" : False },
252
+ config , {"unreleased_version" : None , "incremental" : True , "dry_run" : False }
253
253
)
254
254
mocker .patch .object (changelog .cz , "changelog_hook" , changelog_hook_mock )
255
255
changelog ()
@@ -261,7 +261,7 @@ def test_changlog_hook(mocker, config):
261
261
262
262
263
263
@pytest .mark .usefixtures ("tmp_commitizen_project" )
264
- def test_changlog_multiple_incremental_do_not_add_new_lines (
264
+ def test_changelog_multiple_incremental_do_not_add_new_lines (
265
265
mocker , capsys , changelog_path
266
266
):
267
267
"""Test for bug https://github.com/commitizen-tools/commitizen/issues/192"""
0 commit comments