Merging upstream version 0.16.0.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
40df5416c1
commit
72676ec535
56 changed files with 615 additions and 161 deletions
|
@ -10,14 +10,14 @@ class ContribRuleTests(BaseTestCase):
|
|||
def test_contrib_rules(self):
|
||||
self.create_simple_commit("WIP Thi$ is å title\n\nMy bödy that is a bit longer than 20 chars")
|
||||
output = gitlint("--contrib", "contrib-title-conventional-commits,CC1",
|
||||
_cwd=self.tmp_git_repo, _tty_in=True, _ok_code=[4])
|
||||
_cwd=self.tmp_git_repo, _tty_in=True, _ok_code=[3])
|
||||
self.assertEqualStdout(output, self.get_expected("test_contrib/test_contrib_rules_1"))
|
||||
|
||||
def test_contrib_rules_with_config(self):
|
||||
self.create_simple_commit("WIP Thi$ is å title\n\nMy bödy that is a bit longer than 20 chars")
|
||||
output = gitlint("--contrib", "contrib-title-conventional-commits,CC1",
|
||||
"-c", "contrib-title-conventional-commits.types=föo,bår",
|
||||
_cwd=self.tmp_git_repo, _tty_in=True, _ok_code=[4])
|
||||
_cwd=self.tmp_git_repo, _tty_in=True, _ok_code=[3])
|
||||
self.assertEqualStdout(output, self.get_expected("test_contrib/test_contrib_rules_with_config_1"))
|
||||
|
||||
def test_invalid_contrib_rules(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue