1
0
Fork 0

Merging upstream version 0.18.0.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-02-13 06:06:24 +01:00
parent 0453b640a2
commit 129d2ce1fc
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
118 changed files with 4146 additions and 2087 deletions

View file

@ -1,10 +1,9 @@
# -*- coding: utf-8 -*-
from qa.shell import gitlint
from qa.base import BaseTestCase
class NamedRuleTests(BaseTestCase):
""" Integration tests for named rules."""
"""Integration tests for named rules."""
def test_named_rule(self):
commit_msg = "WIP: thåt dûr bår\n\nSïmple commit body"
@ -18,6 +17,7 @@ class NamedRuleTests(BaseTestCase):
self.create_simple_commit(commit_msg)
config_path = self.get_sample_path("config/named-user-rules")
extra_path = self.get_sample_path("user_rules/extra")
output = gitlint("--extra-path", extra_path, "--config", config_path, _cwd=self.tmp_git_repo, _tty_in=True,
_ok_code=[9])
output = gitlint(
"--extra-path", extra_path, "--config", config_path, _cwd=self.tmp_git_repo, _tty_in=True, _ok_code=[9]
)
self.assertEqualStdout(output, self.get_expected("test_named_rules/test_named_user_rule_1"))