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