~bzr/bzr/bzr.1.5

« back to all changes in this revision

Viewing changes to bzrlib/tests/revisionstore_implementations/__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:
27
27
from bzrlib.tests import (
28
28
                          adapt_modules,
29
29
                          default_transport,
30
 
                          TestLoader,
31
30
                          TestScenarioApplier,
32
 
                          TestSuite,
33
31
                          )
34
32
 
35
33
 
74
72
        return result
75
73
 
76
74
 
77
 
def test_suite():
78
 
    result = TestSuite()
 
75
def load_tests(basic_tests, module, loader):
 
76
    result = loader.suiteClass()
 
77
    # add the tests for this module
 
78
    result.addTests(basic_tests)
 
79
 
79
80
    test_revisionstore_implementations = [
80
81
        'bzrlib.tests.revisionstore_implementations.test_all',
81
82
        ]
86
87
        None,
87
88
        RevisionStoreTestProviderAdapter.default_test_list()
88
89
        )
89
 
    loader = TestLoader()
 
90
    # add the tests for the sub modules
90
91
    adapt_modules(test_revisionstore_implementations, adapter, loader, result)
91
92
    return result