summaryrefslogtreecommitdiff
path: root/tests/extensions/test_empty_comment.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/extensions/test_empty_comment.py')
-rw-r--r--tests/extensions/test_empty_comment.py35
1 files changed, 0 insertions, 35 deletions
diff --git a/tests/extensions/test_empty_comment.py b/tests/extensions/test_empty_comment.py
deleted file mode 100644
index 42d1b51f2..000000000
--- a/tests/extensions/test_empty_comment.py
+++ /dev/null
@@ -1,35 +0,0 @@
-from pathlib import Path
-
-import pytest
-
-from pylint.extensions import empty_comment
-from pylint.lint.pylinter import PyLinter
-
-
-@pytest.fixture(scope="module")
-def checker():
- return empty_comment.CommentChecker
-
-
-@pytest.fixture(scope="module")
-def enable():
- return ["empty-comment"]
-
-
-@pytest.fixture(scope="module")
-def disable():
- return ["all"]
-
-
-def test_comment_base_case(linter: PyLinter) -> None:
- comment_test = str(Path(__file__).parent.joinpath("data", "empty_comment.py"))
- linter.check([comment_test])
- msgs = linter.reporter.messages
- assert len(msgs) == 4
- for msg in msgs:
- assert msg.symbol == "empty-comment"
- assert msg.msg == "Line with empty comment"
- assert msgs[0].line == 2
- assert msgs[1].line == 3
- assert msgs[2].line == 5
- assert msgs[3].line == 7