diff options
author | Arthur Zamarin <arthurzam@gentoo.org> | 2022-08-19 20:51:02 +0300 |
---|---|---|
committer | Arthur Zamarin <arthurzam@gentoo.org> | 2022-08-19 20:56:03 +0300 |
commit | 309450e82f768f580d217500a43fde08295013a1 (patch) | |
tree | a545f28c23a8f7c633ab198bf953ca85de69ed63 /tests | |
parent | addons/test_eclass.py: fix flaky test_eclass_changes (diff) | |
download | pkgcheck-309450e82f768f580d217500a43fde08295013a1.tar.gz pkgcheck-309450e82f768f580d217500a43fde08295013a1.tar.bz2 pkgcheck-309450e82f768f580d217500a43fde08295013a1.zip |
DescriptionCheck: change long length threshold to 80
Taken from https://devmanual.gentoo.org/ebuild-writing/variables/index.html#ebuild-defined-variables
Reported-by: Sam James <sam@gentoo.org>
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/checks/test_metadata.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/checks/test_metadata.py b/tests/checks/test_metadata.py index 6fb56cff..a3e17a1e 100644 --- a/tests/checks/test_metadata.py +++ b/tests/checks/test_metadata.py @@ -43,10 +43,10 @@ class TestDescriptionCheck(misc.ReportTestCase): assert isinstance(r, metadata.BadDescription) assert 'empty/unset' in str(r) - self.assertNoReport(self.check, self.mk_pkg('s' * 150)) - r = self.assertReport(self.check, self.mk_pkg('s' * 151)) + self.assertNoReport(self.check, self.mk_pkg('s' * 80)) + r = self.assertReport(self.check, self.mk_pkg('s' * 81)) assert isinstance(r, metadata.BadDescription) - assert 'over 150 chars in length' in str(r) + assert 'over 80 chars in length' in str(r) self.assertNoReport(self.check, self.mk_pkg('s' * 10)) r = self.assertReport(self.check, self.mk_pkg('s' * 9)) |