Skip to content

Commit

Permalink
chore(pre-commit): autofix run
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Aug 18, 2023
1 parent 8247847 commit 6b4f68c
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions tests/test_format.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,15 +220,18 @@ def test_is_conventional__missing_delimiter():
assert not format.is_conventional(input)


@pytest.mark.parametrize('input,has_prefix', [
('amend! ', True),
('fixup! ', True),
('squash! ', True),
('squash! whatever .. $12 #', True),
('squash!', False),
(' squash! ', False),
('squash!:', False),
('feat(foo):', False),
])
@pytest.mark.parametrize(
"input,has_prefix",
[
("amend! ", True),
("fixup! ", True),
("squash! ", True),
("squash! whatever .. $12 #", True),
("squash!", False),
(" squash! ", False),
("squash!:", False),
("feat(foo):", False),
],
)
def test_has_autosquash_prefix(input, has_prefix):
assert format.has_autosquash_prefix(input) == has_prefix

0 comments on commit 6b4f68c

Please sign in to comment.