/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: 2007-02-01 15:50:40 UTC
  • Revision ID: jelmer@samba.org-20070201155040-3hq4mfbxs99kzazy
add framework for tests.

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 Jelmer Venrooij <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
15
15
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
16
16
 
17
17
from unittest import TestLoader, TestSuite
18
 
from bzrlib.tests import TestUtil
19
 
 
20
 
import os
21
18
 
22
19
def test_suite():
23
20
    result = TestSuite()
24
21
 
25
 
    loader = TestUtil.TestLoader()
26
 
 
27
 
    testmod_names = [
28
 
        'test_diff',
29
 
        'test_preferences',
30
 
        'test_history',
31
 
        'test_viz'
32
 
        ]
33
 
 
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]))
 
22
    loader = TestLoader()
38
23
    return result
39
24