21
22
class TestPylint(unittest.TestCase):
22
def test_project_errors_only(self):
23
'''run pylint in error only mode
25
your code may well work even with pylint errors
26
but have some unusual code'''
27
return_code = subprocess.call(["pylint", '-E', 'qreator'])
28
# not needed because nosetests displays pylint console output
29
#self.assertEqual(return_code, 0)
31
# un-comment the following for loads of diagnostics
32
#~ def test_project_full_report(self):
33
#~ '''Only for the brave
35
#~ you will have to make judgement calls about your code standards
36
#~ that differ from the norm'''
37
#~ return_code = subprocess.call(["pylint", 'qreator'])
24
# un-comment the following for loads of diagnostics
25
def test_project_full_report(self):
27
you will have to make judgement calls about your code standards
28
that differ from the norm'''
29
#subprocess.call(["pylint", '-E', 'qreator'])
30
subprocess.call(["pylint", 'qreator', 'qreator_lib'])
39
32
if __name__ == '__main__':
40
'you will get better results with nosetests'
33
# you will get better results with nosetests