Skip to content

Commit b782df5

Browse files
committed
test(check): fix typo
1 parent 8ce0fdf commit b782df5

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
@@ -23,7 +23,7 @@
2323

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

243243

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

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

262262

263263
def test_check_command_with_valid_message(config, mocker: MockFixture):

0 commit comments

Comments
 (0)