Skip to content

Commit 0cfd912

Browse files
committed
test(check): fix typo
1 parent aba6015 commit 0cfd912

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/commands/test_check_command.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
COMMIT_LOG = [
2222
"refactor: A code change that neither fixes a bug nor adds a feature",
23-
r"refactor(cz/connventional_commit): use \S to check scope",
23+
r"refactor(cz/conventional_commit): use \S to check scope",
2424
"refactor(git): remove unnecessary dot between git range",
2525
"bump: version 1.16.3 → 1.16.4",
2626
(
@@ -239,22 +239,22 @@ def test_check_command_with_empty_range(config, mocker: MockFixture):
239239

240240

241241
def test_check_a_range_of_failed_git_commits(config, mocker: MockFixture):
242-
ill_formated_commits_msgs = [
242+
ill_formatted_commits_msgs = [
243243
"First commit does not follow rule",
244244
"Second commit does not follow rule",
245245
("Third commit does not follow rule\nIll-formatted commit with body"),
246246
]
247247
mocker.patch(
248248
"commitizen.git.get_commits",
249-
return_value=_build_fake_git_commits(ill_formated_commits_msgs),
249+
return_value=_build_fake_git_commits(ill_formatted_commits_msgs),
250250
)
251251
check_cmd = commands.Check(
252252
config=config, arguments={"rev_range": "HEAD~10..master"}
253253
)
254254

255255
with pytest.raises(InvalidCommitMessageError) as excinfo:
256256
check_cmd()
257-
assert all([msg in str(excinfo.value) for msg in ill_formated_commits_msgs])
257+
assert all([msg in str(excinfo.value) for msg in ill_formatted_commits_msgs])
258258

259259

260260
def test_check_command_with_valid_message(config, mocker: MockFixture):

0 commit comments

Comments
 (0)