~unity-2d-team/unity-2d/Shell-MultiMonitor

21 by William Grant
Merge grackle.server into grackle. Alter Makefile to run all the tests.
1
# Copyright (c) 2012 Canonical Ltd
2
#
3
# This program is free software: you can redistribute it and/or modify
4
# it under the terms of the GNU Affero General Public License as published by
5
# the Free Software Foundation, either version 3 of the License, or
6
# (at your option) any later version.
7
#
8
# This program is distributed in the hope that it will be useful,
9
# but WITHOUT ANY WARRANTY; without even the implied warranty of
10
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11
# GNU Affero General Public License for more details.
12
#
13
# You should have received a copy of the GNU Affero General Public
14
# License along with this program. If not, see
15
# <http://www.gnu.org/licenses/>.
16
17
from unittest import TestLoader
18
19
20
def test_suite():
21
    test_names = [
22
        'model',
23
        'client',
24
        'wsgi',
25
        ]
26
    tests = ['grackle.tests.test_' + test for test in test_names]
27
    loader = TestLoader()
28
    return loader.loadTestsFromNames(tests)