summaryrefslogtreecommitdiff
path: root/test/test_func.py
diff options
context:
space:
mode:
authorMichal Nowikowski <godfryd@gmail.com>2014-07-28 07:25:12 +0200
committerMichal Nowikowski <godfryd@gmail.com>2014-07-28 07:25:12 +0200
commitcfdf3f3bc090327c01d49f637f50789e25672458 (patch)
tree12450fe1dbb90e1859a7128a5ea0d85b3f5c0b1c /test/test_func.py
parent43000ccc1ede81c4180593cad69aeb8d737f1a36 (diff)
parent7c89607d207bd718769829ec089d24e2d82b0999 (diff)
downloadpylint-cfdf3f3bc090327c01d49f637f50789e25672458.tar.gz
Merged default into spelling-checker
Diffstat (limited to 'test/test_func.py')
-rw-r--r--test/test_func.py13
1 files changed, 4 insertions, 9 deletions
diff --git a/test/test_func.py b/test/test_func.py
index 5781856..66e092d 100644
--- a/test/test_func.py
+++ b/test/test_func.py
@@ -45,7 +45,9 @@ class LintTestNonExistentModuleTC(LintTestUsingModule):
class TestTests(testlib.TestCase):
"""check that all testable messages have been checked"""
PORTED = set(['I0001', 'I0010', 'W0712', 'E1001', 'W1402', 'E1310', 'E0202',
- 'W0711', 'W0108', 'C0112'])
+ 'W0711', 'W0108', 'E0603', 'W0710', 'E0710', 'E0711', 'W1001',
+ 'E1124', 'E1120', 'E1121', 'E1123', 'E1003', 'E1002', 'W0212',
+ 'W0109', 'E1004', 'W0604', 'W0601', 'W0602', 'C0112', 'C0330'])
@testlib.tag('coverage')
def test_exhaustivity(self):
@@ -75,10 +77,7 @@ def gen_tests(filter_rgx):
callbacks = [cb_test_gen(LintTestUpdate)]
else:
callbacks = [cb_test_gen(LintTestUsingModule)]
- if not MODULES_ONLY:
- callbacks.append(cb_test_gen(LintTestUsingFile))
tests = make_tests(INPUT_DIR, MSG_DIR, filter_rgx, callbacks)
-
if UPDATE:
return tests
@@ -96,12 +95,12 @@ def gen_tests(filter_rgx):
# test all features are tested :)
tests.append(TestTests)
+ assert len(tests) < 196, "Please do not add new test cases here."
return tests
# Create suite
FILTER_RGX = None
-MODULES_ONLY = False
UPDATE = False
def suite():
@@ -110,10 +109,6 @@ def suite():
if __name__=='__main__':
- if '-m' in sys.argv:
- MODULES_ONLY = True
- sys.argv.remove('-m')
-
if '-u' in sys.argv:
UPDATE = True
sys.argv.remove('-u')