~thomas-deruyter-3/qreator/qreator

1 by David Planella
Initial project creation with Quickly!
1
#!/usr/bin/python
2
# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*-
3
### BEGIN LICENSE
20 by David Planella
Added license
4
# Copyright (C) 2012 David Planella <david.planella@ubuntu.com>
5
# This program is free software: you can redistribute it and/or modify it 
6
# under the terms of the GNU General Public License version 3, as published 
7
# by the Free Software Foundation.
8
# 
9
# This program is distributed in the hope that it will be useful, but 
10
# WITHOUT ANY WARRANTY; without even the implied warranties of 
11
# MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR 
12
# PURPOSE.  See the GNU General Public License for more details.
13
# 
14
# You should have received a copy of the GNU General Public License along 
15
# with this program.  If not, see <http://www.gnu.org/licenses/>.
1 by David Planella
Initial project creation with Quickly!
16
### END LICENSE
17
18
import unittest
19
import subprocess
20
127.1.1 by Stefan Schwarzburg
changed simple tests to nosetests with code evaluation
21
1 by David Planella
Initial project creation with Quickly!
22
class TestPylint(unittest.TestCase):
23
127.1.1 by Stefan Schwarzburg
changed simple tests to nosetests with code evaluation
24
    # un-comment the following for loads of diagnostics
25
    def test_project_full_report(self):
26
        '''Only for the brave
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'])
1 by David Planella
Initial project creation with Quickly!
31
32
if __name__ == '__main__':
127.1.1 by Stefan Schwarzburg
changed simple tests to nosetests with code evaluation
33
    # you will get better results with nosetests
34
    import nose
35
    nose.main()