summaryrefslogtreecommitdiff
path: root/tests/reporters
diff options
context:
space:
mode:
authorDaniƫl van Noord <13665637+DanielNoord@users.noreply.github.com>2022-09-09 12:56:40 +0200
committerGitHub <noreply@github.com>2022-09-09 12:56:40 +0200
commit2b6bd64d43ed109b1ee15f0993c010660cf56b13 (patch)
tree0f8605ed4d6b2dc4d0d176a4761d6fdd6526eb4d /tests/reporters
parent6bac42efacdf1c1777db2021ca6ceda89eb8f199 (diff)
downloadpylint-git-2b6bd64d43ed109b1ee15f0993c010660cf56b13.tar.gz
Finish some incomplete typing signatures (#7442)
Diffstat (limited to 'tests/reporters')
-rw-r--r--tests/reporters/unittest_reporting.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/reporters/unittest_reporting.py b/tests/reporters/unittest_reporting.py
index c81590359..ea7d6758b 100644
--- a/tests/reporters/unittest_reporting.py
+++ b/tests/reporters/unittest_reporting.py
@@ -35,7 +35,7 @@ def disable():
return ["I"]
-def test_template_option(linter):
+def test_template_option(linter: PyLinter) -> None:
output = StringIO()
linter.reporter.out = output
linter.config.msg_template = "{msg_id}:{line:03d}"
@@ -46,7 +46,7 @@ def test_template_option(linter):
assert output.getvalue() == "************* Module 0123\nC0301:001\nC0301:002\n"
-def test_template_option_default(linter) -> None:
+def test_template_option_default(linter: PyLinter) -> None:
"""Test the default msg-template setting."""
output = StringIO()
linter.reporter.out = output
@@ -60,7 +60,7 @@ def test_template_option_default(linter) -> None:
assert out_lines[2] == "my_module:2:0: C0301: Line too long (3/4) (line-too-long)"
-def test_template_option_end_line(linter) -> None:
+def test_template_option_end_line(linter: PyLinter) -> None:
"""Test the msg-template option with end_line and end_column."""
output = StringIO()
linter.reporter.out = output
@@ -79,7 +79,7 @@ def test_template_option_end_line(linter) -> None:
assert out_lines[2] == "my_mod:2:0:2:4: C0301: Line too long (3/4) (line-too-long)"
-def test_template_option_non_existing(linter) -> None:
+def test_template_option_non_existing(linter: PyLinter) -> None:
"""Test the msg-template option with non-existent options.
This makes sure that this option remains backwards compatible as new
parameters do not break on previous versions