Skip to content

Commit 168c9f0

Browse files
committed
style(tests): fix function name typo
1 parent 016fba7 commit 168c9f0

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

tests/commands/test_changelog_command.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def changelog_path() -> str:
1616

1717

1818
@pytest.mark.usefixtures("tmp_commitizen_project")
19-
def test_changlog_on_empty_project(mocker):
19+
def test_changelog_on_empty_project(mocker):
2020
testargs = ["cz", "changelog", "--dry-run"]
2121
mocker.patch.object(sys, "argv", testargs)
2222

@@ -25,7 +25,7 @@ def test_changlog_on_empty_project(mocker):
2525

2626

2727
@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):
2929
create_file_and_commit("feat: new file")
3030
create_file_and_commit("refactor: not in changelog")
3131

@@ -48,7 +48,7 @@ def test_changlog_from_version_zero_point_two(mocker, capsys):
4848

4949

5050
@pytest.mark.usefixtures("tmp_commitizen_project")
51-
def test_changlog_with_different_cz(mocker, capsys):
51+
def test_changelog_with_different_cz(mocker, capsys):
5252
create_file_and_commit("JRA-34 #comment corrected indent issue")
5353
create_file_and_commit("JRA-35 #time 1w 2d 4h 30m Total work logged")
5454

@@ -65,7 +65,7 @@ def test_changlog_with_different_cz(mocker, capsys):
6565

6666

6767
@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):
6969
create_file_and_commit("feat: new file")
7070
create_file_and_commit("refactor: is in changelog")
7171
create_file_and_commit("Merge into master")
@@ -84,7 +84,7 @@ def test_changlog_from_start(mocker, capsys, changelog_path):
8484

8585

8686
@pytest.mark.usefixtures("tmp_commitizen_project")
87-
def test_changlog_replacing_unreleased_using_incremental(
87+
def test_changelog_replacing_unreleased_using_incremental(
8888
mocker, capsys, changelog_path
8989
):
9090
create_file_and_commit("feat: add new output")
@@ -118,7 +118,7 @@ def test_changlog_replacing_unreleased_using_incremental(
118118

119119

120120
@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):
122122

123123
create_file_and_commit("feat: add new output")
124124
create_file_and_commit("fix: output glitch")
@@ -155,7 +155,7 @@ def test_changlog_is_persisted_using_incremental(mocker, capsys, changelog_path)
155155

156156

157157
@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):
159159
with open(changelog_path, "w") as f:
160160
f.write(
161161
"# [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):
213213

214214

215215
@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):
217217
with open(changelog_path, "w") as f:
218218
f.write(KEEP_A_CHANGELOG)
219219
create_file_and_commit("irrelevant commit")
@@ -240,7 +240,7 @@ def test_changlog_incremental_keep_a_changelog_sample(mocker, capsys, changelog_
240240

241241

242242
@pytest.mark.usefixtures("tmp_commitizen_project")
243-
def test_changlog_hook(mocker, config):
243+
def test_changelog_hook(mocker, config):
244244
changelog_hook_mock = mocker.Mock()
245245
changelog_hook_mock.return_value = "cool changelog hook"
246246

@@ -249,7 +249,7 @@ def test_changlog_hook(mocker, config):
249249
create_file_and_commit("Merge into master")
250250

251251
changelog = Changelog(
252-
config, {"unreleased_version": None, "incremental": True, "dry_run": False},
252+
config, {"unreleased_version": None, "incremental": True, "dry_run": False}
253253
)
254254
mocker.patch.object(changelog.cz, "changelog_hook", changelog_hook_mock)
255255
changelog()
@@ -261,7 +261,7 @@ def test_changlog_hook(mocker, config):
261261

262262

263263
@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(
265265
mocker, capsys, changelog_path
266266
):
267267
"""Test for bug https://github.com/commitizen-tools/commitizen/issues/192"""

0 commit comments

Comments
 (0)