|
20 | 20 |
|
21 | 21 | COMMIT_LOG = [ |
22 | 22 | "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", |
24 | 24 | "refactor(git): remove unnecessary dot between git range", |
25 | 25 | "bump: version 1.16.3 → 1.16.4", |
26 | 26 | ( |
@@ -239,22 +239,22 @@ def test_check_command_with_empty_range(config, mocker: MockFixture): |
239 | 239 |
|
240 | 240 |
|
241 | 241 | def test_check_a_range_of_failed_git_commits(config, mocker: MockFixture): |
242 | | - ill_formated_commits_msgs = [ |
| 242 | + ill_formatted_commits_msgs = [ |
243 | 243 | "First commit does not follow rule", |
244 | 244 | "Second commit does not follow rule", |
245 | 245 | ("Third commit does not follow rule\nIll-formatted commit with body"), |
246 | 246 | ] |
247 | 247 | mocker.patch( |
248 | 248 | "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), |
250 | 250 | ) |
251 | 251 | check_cmd = commands.Check( |
252 | 252 | config=config, arguments={"rev_range": "HEAD~10..master"} |
253 | 253 | ) |
254 | 254 |
|
255 | 255 | with pytest.raises(InvalidCommitMessageError) as excinfo: |
256 | 256 | 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]) |
258 | 258 |
|
259 | 259 |
|
260 | 260 | def test_check_command_with_valid_message(config, mocker: MockFixture): |
|
0 commit comments