diff options
author | Dani Alcala <112832187+clavedeluna@users.noreply.github.com> | 2022-12-30 09:09:44 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-30 13:09:44 +0100 |
commit | b15c502116cb3ee80c57369cf1dd6f8f21083ac4 (patch) | |
tree | f4f0e33187580777ffe293648f305212da849e39 /tests/test_self.py | |
parent | 57d959abc7c21d4c5dbdcdb461e3801bf1caca27 (diff) | |
download | pylint-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.py | 12 |
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.""" |