/b-gtk/fix-viz

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/b-gtk/fix-viz

« back to all changes in this revision

Viewing changes to tests/__init__.py

  • Committer: Jelmer Vernooij
  • Date: 2011-12-06 16:57:32 UTC
  • Revision ID: jelmer@samba.org-20111206165732-0i7lcllq42wy6tao
Cope with the fact that Option doesn't support the help argument in bzr 2.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2007 Jelmer Vernooij <jelmer@samba.org>
 
1
# Copyright (C) 2007, 2008 Jelmer Vernooij <jelmer@samba.org>
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
14
14
# along with this program; if not, write to the Free Software
15
15
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
16
16
 
17
 
from unittest import TestLoader, TestSuite
18
 
from bzrlib.tests import TestUtil
19
 
 
20
 
import os
21
 
 
22
 
def test_suite():
23
 
    result = TestSuite()
24
 
 
25
 
    loader = TestUtil.TestLoader()
26
 
 
 
17
 
 
18
def load_tests(basic_tests, module, loader):
27
19
    testmod_names = [
 
20
        'test_annotate_config',
 
21
        'test_avatarsbox',
28
22
        'test_commit',
29
23
        'test_diff',
30
 
        'test_preferences',
31
24
        'test_history',
 
25
        'test_graphcell',
 
26
        'test_linegraph',
 
27
        'test_revisionview',
 
28
        'test_treemodel',
32
29
        ]
33
30
 
34
 
    if os.name == 'nt':
35
 
        testmod_names.append("test_tortoise_bzr")
36
 
 
37
 
    result.addTest(loader.loadTestsFromModuleNames(["%s.%s" % (__name__, i) for i in testmod_names]))
38
 
    return result
39
 
 
 
31
    basic_tests.addTest(loader.loadTestsFromModuleNames(
 
32
            ["%s.%s" % (__name__, tmn) for tmn in testmod_names]))
 
33
    return basic_tests