summaryrefslogtreecommitdiff
path: root/tests/unittest_reporting.py
diff options
context:
space:
mode:
authorDaniƫl van Noord <13665637+DanielNoord@users.noreply.github.com>2021-09-16 16:58:37 +0200
committerGitHub <noreply@github.com>2021-09-16 16:58:37 +0200
commit0d246e55a3d13d4fb0829c000064fa26fcbd4183 (patch)
treee63a3ebb6a6370a54073cbab46ff7c1f15a16111 /tests/unittest_reporting.py
parentdc0c7e97b1e92beffa36f76c5c56164f69b81a2a (diff)
downloadpylint-git-0d246e55a3d13d4fb0829c000064fa26fcbd4183.tar.gz
Add typing to ``filepath`` (#4980)
* Change tests for ``filepath`` changes * Add pylint/typing.py and FileItem NamedTuple * Use NamedTuple more efficiently * Fix errors and tests after adding warning * Add deprecation for future API change in Checker Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com> Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
Diffstat (limited to 'tests/unittest_reporting.py')
-rw-r--r--tests/unittest_reporting.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/unittest_reporting.py b/tests/unittest_reporting.py
index d1d483a35..88f9c43b5 100644
--- a/tests/unittest_reporting.py
+++ b/tests/unittest_reporting.py
@@ -29,6 +29,7 @@ from pylint.interfaces import IReporter
from pylint.lint import PyLinter
from pylint.reporters import BaseReporter
from pylint.reporters.text import ParseableTextReporter, TextReporter
+from pylint.typing import FileItem
@pytest.fixture(scope="module")
@@ -120,7 +121,7 @@ def test_multi_format_output(tmp_path):
linter.reporter.set_output(text)
linter.open()
- linter.check_single_file("somemodule", source_file, "somemodule")
+ linter.check_single_file_item(FileItem("somemodule", source_file, "somemodule"))
linter.add_message("line-too-long", line=1, args=(1, 2))
linter.generate_reports()
linter.reporter.writeln("direct output")