summaryrefslogtreecommitdiff
path: root/tests/test_self.py
diff options
context:
space:
mode:
authorDani Alcala <112832187+clavedeluna@users.noreply.github.com>2022-12-30 09:09:44 -0300
committerGitHub <noreply@github.com>2022-12-30 13:09:44 +0100
commitb15c502116cb3ee80c57369cf1dd6f8f21083ac4 (patch)
treef4f0e33187580777ffe293648f305212da849e39 /tests/test_self.py
parent57d959abc7c21d4c5dbdcdb461e3801bf1caca27 (diff)
downloadpylint-git-b15c502116cb3ee80c57369cf1dd6f8f21083ac4.tar.gz
Add `no-header` run option (#7869)
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
Diffstat (limited to 'tests/test_self.py')
-rw-r--r--tests/test_self.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/test_self.py b/tests/test_self.py
index 61b417f0c..9cec1b1c9 100644
--- a/tests/test_self.py
+++ b/tests/test_self.py
@@ -1278,6 +1278,18 @@ a.py:1:4: E0001: Parsing failed: 'invalid syntax (<unknown>, line 1)' (syntax-er
self._test_output([module, "--enable=all"], expected_output=expected)
+ def test_output_no_header(self) -> None:
+ module = join(HERE, "data", "clientmodule_test.py")
+ expected = "Unused variable 'local_variable'"
+ not_expected = textwrap.dedent(
+ """************* Module data.clientmodule_test"""
+ )
+
+ args = [module, "--output-format=no-header"]
+ self._test_output(
+ args, expected_output=expected, unexpected_output=not_expected
+ )
+
class TestCallbackOptions:
"""Test for all callback options we support."""