summaryrefslogtreecommitdiffstats
path: root/gitlint/tests/rules/test_rules.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2021-12-04 03:31:49 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2021-12-04 03:31:49 +0000
commit23d0ac82f3d68663ddc74a0e1f9b963beb8d62b9 (patch)
treefc37aa2c97a3d28b3dee7f3892041158981ed335 /gitlint/tests/rules/test_rules.py
parentReleasing progress-linux version 0.16.0-1. (diff)
downloadgitlint-23d0ac82f3d68663ddc74a0e1f9b963beb8d62b9.tar.xz
gitlint-23d0ac82f3d68663ddc74a0e1f9b963beb8d62b9.zip
Merging upstream version 0.17.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'gitlint/tests/rules/test_rules.py')
-rw-r--r--gitlint/tests/rules/test_rules.py23
1 files changed, 0 insertions, 23 deletions
diff --git a/gitlint/tests/rules/test_rules.py b/gitlint/tests/rules/test_rules.py
deleted file mode 100644
index 6fcf9bc..0000000
--- a/gitlint/tests/rules/test_rules.py
+++ /dev/null
@@ -1,23 +0,0 @@
-# -*- coding: utf-8 -*-
-from gitlint.tests.base import BaseTestCase
-from gitlint.rules import Rule, RuleViolation
-
-
-class RuleTests(BaseTestCase):
-
- def test_rule_equality(self):
- self.assertEqual(Rule(), Rule())
- # Ensure rules are not equal if they differ on their attributes
- for attr in ["id", "name", "target", "options"]:
- rule = Rule()
- setattr(rule, attr, "åbc")
- self.assertNotEqual(Rule(), rule)
-
- def test_rule_log(self):
- rule = Rule()
- rule.log.debug("Tēst message")
- self.assert_log_contains("DEBUG: gitlint.rules Tēst message")
-
- def test_rule_violation_equality(self):
- violation1 = RuleViolation("ïd1", "My messåge", "My cöntent", 1)
- self.object_equality_test(violation1, ["rule_id", "message", "content", "line_nr"])