~matiasb/canonical-identity-provider/update-get-new-account-link

« back to all changes in this revision

Viewing changes to fabtasks/development.py

  • Committer: leo.arias at canonical
  • Date: 2012-10-16 16:39:01 UTC
  • mfrom: (34.1.6 static-tests)
  • Revision ID: leo.arias@canonical.com-20121016163901-w1yqz67tsef60edj
Added fab commands for bootstrap and static tests.
Added pep8 conformance and pyflakes analysis tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# -*- coding: utf-8 -*-
 
2
 
 
3
# Copyright 2012 Canonical Ltd.
 
4
#
 
5
# This program is free software: you can redistribute it and/or modify it
 
6
# under the terms of the GNU Lesser General Public License version 3, as 
 
7
# published 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 Lesser 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/>.
 
16
 
 
17
import unittest
 
18
 
 
19
 
 
20
def test(static_tests=True):
 
21
    if static_tests:
 
22
        _run_static_tests()
 
23
 
 
24
 
 
25
def _run_static_tests():
 
26
    suite = unittest.TestLoader().discover('sso_sst_helpers/selftests/static')
 
27
    unittest.TextTestRunner(verbosity=2).run(suite)