summaryrefslogtreecommitdiff
path: root/tests/extensions/test_emptystring.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/extensions/test_emptystring.py')
-rw-r--r--tests/extensions/test_emptystring.py15
1 files changed, 8 insertions, 7 deletions
diff --git a/tests/extensions/test_emptystring.py b/tests/extensions/test_emptystring.py
index c7ff30b50..c61d16670 100644
--- a/tests/extensions/test_emptystring.py
+++ b/tests/extensions/test_emptystring.py
@@ -17,24 +17,25 @@ import pytest
from pylint.extensions.emptystring import CompareToEmptyStringChecker
-@pytest.fixture(scope='module')
+@pytest.fixture(scope="module")
def checker(checker):
return CompareToEmptyStringChecker
-@pytest.fixture(scope='module')
+@pytest.fixture(scope="module")
def disable(disable):
- return ['I']
+ return ["I"]
def test_emptystring_message(linter):
- elif_test = osp.join(osp.dirname(osp.abspath(__file__)), 'data',
- 'empty_string_comparison.py')
+ elif_test = osp.join(
+ osp.dirname(osp.abspath(__file__)), "data", "empty_string_comparison.py"
+ )
linter.check([elif_test])
msgs = linter.reporter.messages
expected_lineno = [6, 9, 12, 15]
assert len(msgs) == len(expected_lineno)
for msg, lineno in zip(msgs, expected_lineno):
- assert msg.symbol == 'compare-to-empty-string'
- assert msg.msg == 'Avoid comparisons to empty string'
+ assert msg.symbol == "compare-to-empty-string"
+ assert msg.msg == "Avoid comparisons to empty string"
assert msg.line == lineno