diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2021-04-19 13:27:13 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2021-04-19 13:28:19 +0000 |
commit | a4dc387bfbc56ba97701bfdde34b033ada9bb5c1 (patch) | |
tree | 3e2e000f25057e78e8789657216afe02f28d9946 /gitlint/tests/rules/test_body_rules.py | |
parent | Releasing debian version 0.15.0-1. (diff) | |
download | gitlint-a4dc387bfbc56ba97701bfdde34b033ada9bb5c1.tar.xz gitlint-a4dc387bfbc56ba97701bfdde34b033ada9bb5c1.zip |
Merging upstream version 0.15.1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'gitlint/tests/rules/test_body_rules.py')
-rw-r--r-- | gitlint/tests/rules/test_body_rules.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gitlint/tests/rules/test_body_rules.py b/gitlint/tests/rules/test_body_rules.py index 96ae998..a268585 100644 --- a/gitlint/tests/rules/test_body_rules.py +++ b/gitlint/tests/rules/test_body_rules.py @@ -126,6 +126,16 @@ class BodyRuleTests(BaseTestCase): violations = rule.validate(commit) self.assertListEqual(violations, [expected_violation]) + def test_body_missing_multiple_empty_new_lines(self): + rule = rules.BodyMissing() + + # body is too short + expected_violation = rules.RuleViolation("B6", "Body message is missing", None, 3) + + commit = self.gitcommit("Tïtle\n\n\n\n") + violations = rule.validate(commit) + self.assertListEqual(violations, [expected_violation]) + def test_body_missing_merge_commit(self): rule = rules.BodyMissing() |