From 643bc3635e75121826fb878f46ca540ce210bace Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 19 Apr 2021 15:27:09 +0200 Subject: Adding upstream version 0.15.1. Signed-off-by: Daniel Baumann --- gitlint/tests/contrib/rules/test_signedoff_by.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'gitlint/tests/contrib') diff --git a/gitlint/tests/contrib/rules/test_signedoff_by.py b/gitlint/tests/contrib/rules/test_signedoff_by.py index c92f1a6..0369cdc 100644 --- a/gitlint/tests/contrib/rules/test_signedoff_by.py +++ b/gitlint/tests/contrib/rules/test_signedoff_by.py @@ -17,16 +17,16 @@ class ContribSignedOffByTests(BaseTestCase): self.assertIn(SignedOffBy(), config.rules) def test_signedoff_by(self): - # No violations when 'Signed-Off-By' line is present + # No violations when 'Signed-off-by' line is present rule = SignedOffBy() - violations = rule.validate(self.gitcommit("Föobar\n\nMy Body\nSigned-Off-By: John Smith")) + violations = rule.validate(self.gitcommit("Föobar\n\nMy Body\nSigned-off-by: John Smith")) self.assertListEqual([], violations) - # Assert violation when no 'Signed-Off-By' line is present + # Assert violation when no 'Signed-off-by' line is present violations = rule.validate(self.gitcommit("Föobar\n\nMy Body")) - expected_violation = RuleViolation("CC1", "Body does not contain a 'Signed-Off-By' line", line_nr=1) + expected_violation = RuleViolation("CC1", "Body does not contain a 'Signed-off-by' line", line_nr=1) self.assertListEqual(violations, [expected_violation]) - # Assert violation when no 'Signed-Off-By' in title but not in body - violations = rule.validate(self.gitcommit("Signed-Off-By\n\nFöobar")) + # Assert violation when no 'Signed-off-by' in title but not in body + violations = rule.validate(self.gitcommit("Signed-off-by\n\nFöobar")) self.assertListEqual(violations, [expected_violation]) -- cgit v1.2.3