Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 8a5f338

Browse filesBrowse files
committed
refactor(test): fix typos
1 parent 1c24567 commit 8a5f338
Copy full SHA for 8a5f338
Expand file treeCollapse file tree

12 files changed

+20
-20
lines changed

‎tests/commands/test_bump_command.py

Copy file name to clipboardExpand all lines: tests/commands/test_bump_command.py
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ def test_bump_on_git_with_hooks_no_verify_enabled(mocker: MockFixture):
437437

438438

439439
@pytest.mark.usefixtures("tmp_commitizen_project")
440-
def test_bump_when_bumpping_is_not_support(mocker: MockFixture):
440+
def test_bump_when_bumping_is_not_support(mocker: MockFixture):
441441
create_file_and_commit(
442442
"feat: new user interface\n\nBREAKING CHANGE: age is no longer supported"
443443
)
@@ -1285,7 +1285,7 @@ def test_bump_command_version_scheme_priority_over_version_type(mocker: MockFixt
12851285
),
12861286
),
12871287
)
1288-
def test_bump_template_option_precedance(
1288+
def test_bump_template_option_precedence(
12891289
mocker: MockFixture,
12901290
tmp_commitizen_project: Path,
12911291
any_changelog_format: ChangelogFormat,
@@ -1327,7 +1327,7 @@ def test_bump_template_option_precedance(
13271327
assert out == expected
13281328

13291329

1330-
def test_bump_template_extras_precedance(
1330+
def test_bump_template_extras_precedence(
13311331
mocker: MockFixture,
13321332
tmp_commitizen_project: Path,
13331333
any_changelog_format: ChangelogFormat,

‎tests/commands/test_changelog_command.py

Copy file name to clipboardExpand all lines: tests/commands/test_changelog_command.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1481,7 +1481,7 @@ def test_changelog_from_current_version_tag_with_nonversion_tag(
14811481
),
14821482
),
14831483
)
1484-
def test_changelog_template_option_precedance(
1484+
def test_changelog_template_option_precedence(
14851485
mocker: MockFixture,
14861486
tmp_commitizen_project: Path,
14871487
any_changelog_format: ChangelogFormat,
@@ -1523,7 +1523,7 @@ def test_changelog_template_option_precedance(
15231523
assert out == expected
15241524

15251525

1526-
def test_changelog_template_extras_precedance(
1526+
def test_changelog_template_extras_precedence(
15271527
mocker: MockFixture,
15281528
tmp_commitizen_project: Path,
15291529
mock_plugin: BaseCommitizen,

‎tests/commands/test_check_command.py

Copy file name to clipboardExpand all lines: tests/commands/test_check_command.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ def test_check_command_with_pipe_message_and_failed(mocker: MockFixture):
365365
assert "commit validation: failed!" in str(excinfo.value)
366366

367367

368-
def test_check_command_with_comment_in_messege_file(mocker: MockFixture, capsys):
368+
def test_check_command_with_comment_in_message_file(mocker: MockFixture, capsys):
369369
testargs = ["cz", "check", "--commit-msg-file", "some_file"]
370370
mocker.patch.object(sys, "argv", testargs)
371371
mocker.patch(

‎tests/commands/test_init_command.py

Copy file name to clipboardExpand all lines: tests/commands/test_init_command.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ def check_pre_commit_config(expected: list[dict[str, Any]]):
183183

184184
@pytest.mark.usefixtures("pre_commit_installed")
185185
class TestPreCommitCases:
186-
def test_no_existing_pre_commit_conifg(_, default_choice, tmpdir, config):
186+
def test_no_existing_pre_commit_config(_, default_choice, tmpdir, config):
187187
with tmpdir.as_cwd():
188188
commands.Init(config)()
189189
check_cz_config(default_choice)

‎tests/test_bump_update_version_in_files.py

Copy file name to clipboardExpand all lines: tests/test_bump_update_version_in_files.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ def test_file_version_inconsistent_error(
197197
assert expected_msg in str(excinfo.value)
198198

199199

200-
def test_multiplt_versions_to_bump(
200+
def test_multiple_versions_to_bump(
201201
multiple_versions_to_update_poetry_lock, file_regression
202202
):
203203
old_version = "1.2.9"
@@ -216,7 +216,7 @@ def test_update_version_in_globbed_files(commitizen_config_file, file_regression
216216
print(commitizen_config_file, other)
217217
copyfile(commitizen_config_file, other)
218218

219-
# Prepend full ppath as test assume absolute paths or cwd-relative
219+
# Prepend full path as test assume absolute paths or cwd-relative
220220
version_files = [commitizen_config_file.dirpath("*.toml")]
221221

222222
bump.update_version_in_files(

‎tests/test_changelog_format_asciidoc.py

Copy file name to clipboardExpand all lines: tests/test_changelog_format_asciidoc.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ def test_parse_title_type_of_line(
160160
pytest.param(CHANGELOG_D, EXPECTED_D, id="D"),
161161
),
162162
)
163-
def test_get_matadata(
163+
def test_get_metadata(
164164
tmp_path: Path, format: AsciiDoc, content: str, expected: Metadata
165165
):
166166
changelog = tmp_path / format.default_changelog_file

‎tests/test_changelog_format_markdown.py

Copy file name to clipboardExpand all lines: tests/test_changelog_format_markdown.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ def test_parse_title_type_of_line(
160160
pytest.param(CHANGELOG_D, EXPECTED_D, id="D"),
161161
),
162162
)
163-
def test_get_matadata(
163+
def test_get_metadata(
164164
tmp_path: Path, format: Markdown, content: str, expected: Metadata
165165
):
166166
changelog = tmp_path / format.default_changelog_file

‎tests/test_changelog_format_restructuredtext.py

Copy file name to clipboardExpand all lines: tests/test_changelog_format_restructuredtext.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ def format_with_tags(config: BaseConfig, request) -> RestructuredText:
311311

312312

313313
@pytest.mark.parametrize("content, expected", CASES)
314-
def test_get_matadata(
314+
def test_get_metadata(
315315
tmp_path: Path, format: RestructuredText, content: str, expected: Metadata
316316
):
317317
changelog = tmp_path / format.default_changelog_file

‎tests/test_changelog_format_textile.py

Copy file name to clipboardExpand all lines: tests/test_changelog_format_textile.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ def test_parse_title_type_of_line(
153153
pytest.param(CHANGELOG_D, EXPECTED_D, id="D"),
154154
),
155155
)
156-
def test_get_matadata(
156+
def test_get_metadata(
157157
tmp_path: Path, format: Textile, content: str, expected: Metadata
158158
):
159159
changelog = tmp_path / format.default_changelog_file

‎tests/test_cz_customize.py

Copy file name to clipboardExpand all lines: tests/test_cz_customize.py
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -473,16 +473,16 @@ def test_answer(config):
473473
cz = CustomizeCommitsCz(config)
474474
answers = {
475475
"change_type": "feature",
476-
"message": "this feature enaable customize through config file",
476+
"message": "this feature enable customize through config file",
477477
"show_message": True,
478478
}
479479
message = cz.message(answers)
480-
assert message == "feature: this feature enaable customize through config file"
480+
assert message == "feature: this feature enable customize through config file"
481481

482482
cz = CustomizeCommitsCz(config)
483483
answers = {
484484
"change_type": "feature",
485-
"message": "this feature enaable customize through config file",
485+
"message": "this feature enable customize through config file",
486486
"show_message": False,
487487
}
488488
message = cz.message(answers)

‎tests/test_version_scheme_pep440.py

Copy file name to clipboardExpand all lines: tests/test_version_scheme_pep440.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@
144144
(("3.1.4a0", "MAJOR", "alpha", 0, None), "4.0.0a0"),
145145
]
146146

147-
excact_cases = [
147+
exact_cases = [
148148
(("1.0.0", "PATCH", None, 0, None), "1.0.1"),
149149
(("1.0.0", "MINOR", None, 0, None), "1.1.0"),
150150
# with exact_increment=False: "1.0.0b0"
@@ -213,7 +213,7 @@ def test_bump_pep440_version(test_input, expected):
213213
)
214214

215215

216-
@pytest.mark.parametrize("test_input, expected", excact_cases)
216+
@pytest.mark.parametrize("test_input, expected", exact_cases)
217217
def test_bump_pep440_version_force(test_input, expected):
218218
current_version = test_input[0]
219219
increment = test_input[1]

‎tests/test_version_scheme_semver.py

Copy file name to clipboardExpand all lines: tests/test_version_scheme_semver.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
(("1.0.0-alpha1", None, "alpha", 0, None), "1.0.0-a2"),
8484
]
8585

86-
excact_cases = [
86+
exact_cases = [
8787
(("1.0.0", "PATCH", None, 0, None), "1.0.1"),
8888
(("1.0.0", "MINOR", None, 0, None), "1.1.0"),
8989
# with exact_increment=False: "1.0.0-b0"
@@ -144,7 +144,7 @@ def test_bump_semver_version(test_input, expected):
144144
)
145145

146146

147-
@pytest.mark.parametrize("test_input, expected", excact_cases)
147+
@pytest.mark.parametrize("test_input, expected", exact_cases)
148148
def test_bump_semver_version_force(test_input, expected):
149149
current_version = test_input[0]
150150
increment = test_input[1]

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.