Skip to content
Snippets Groups Projects
Commit 78086677 authored by Sébastien Helleu's avatar Sébastien Helleu
Browse files

Shorten name of some test functions to make pylint happy

parent 574e00f2
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -106,7 +106,7 @@ class TestMsgCheck(unittest.TestCase): # pylint: disable=too-many-public-method
# the file has 9 errors (`noqa` was skipped)
self.assertEqual(len(result[0][1]), 9)
 
def test_replace_formatters_c(self):
def test_replace_fmt_c(self):
"""Test removal of formatters in a C string."""
self.assertEqual(replace_formatters('%s', 'c'), '')
self.assertEqual(replace_formatters('%%', 'c'), '%')
Loading
Loading
@@ -120,7 +120,7 @@ class TestMsgCheck(unittest.TestCase): # pylint: disable=too-many-public-method
replace_formatters('%.3fTest%s%d%%%.03f%luhere% s', 'c'),
'Test%here')
 
def test_replace_formatters_python(self):
def test_replace_fmt_python(self):
"""Test removal of formatters in a python string."""
# str.__mod__()
self.assertEqual(replace_formatters('%s', 'python'), '')
Loading
Loading
@@ -130,7 +130,7 @@ class TestMsgCheck(unittest.TestCase): # pylint: disable=too-many-public-method
self.assertEqual(replace_formatters('%(sth)s', 'python'), '')
self.assertEqual(replace_formatters('%(sth)02f', 'python'), '')
 
def test_replace_formatters_python_brace(self):
def test_replace_fmt_python_brace(self):
"""Test removal of formatters in a python brace string."""
# str.format()
conditions = (
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment