~bzr/bzr/bzr.1.5

« back to all changes in this revision

Viewing changes to bzrlib/tests/commands/__init__.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2008-05-08 23:03:13 UTC
  • mfrom: (3394.3.2 trunk)
  • Revision ID: pqm@pqm.ubuntu.com-20080508230313-knn3ibom6wt27w5k
(vila) Make the test suite use the new test loader

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
# FIXME: If the separation described above from the blackbox tests is not worth
25
25
# it, all the tests defined below should be moved to blackbox instead. 
26
26
 
27
 
from bzrlib.tests import TestLoader
28
 
 
29
 
 
30
 
def test_suite():
 
27
def load_tests(basic_tests, module, loader):
 
28
    suite = loader.suiteClass()
 
29
    # add the tests for this module
 
30
    suite.addTests(basic_tests)
 
31
 
31
32
    testmod_names = [
32
33
        'bzrlib.tests.commands.test_branch',
33
34
        'bzrlib.tests.commands.test_cat',
41
42
        'bzrlib.tests.commands.test_push',
42
43
        'bzrlib.tests.commands.test_update',
43
44
        ]
44
 
    loader = TestLoader()
45
 
    suite = loader.loadTestsFromModuleNames(testmod_names)
 
45
    # add the tests for the sub modules
 
46
    suite.addTests(loader.loadTestsFromModuleNames(testmod_names))
46
47
 
47
48
    return suite