~bzr/bzr/bzr.1.5

« back to all changes in this revision

Viewing changes to bzrlib/tests/interrepository_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:
40
40
from bzrlib.tests import (
41
41
                          adapt_modules,
42
42
                          default_transport,
43
 
                          TestLoader,
44
43
                          TestScenarioApplier,
45
 
                          TestSuite,
46
44
                          )
47
45
from bzrlib.tests.bzrdir_implementations.test_bzrdir import TestCaseWithBzrDir
48
46
from bzrlib.transport import get_transport
163
161
        return self.repository_format_to.initialize(made_control)
164
162
 
165
163
 
166
 
def test_suite():
167
 
    result = TestSuite()
 
164
def load_tests(basic_tests, module, loader):
 
165
    result = loader.suiteClass()
 
166
    # add the tests for this module
 
167
    result.addTests(basic_tests)
 
168
 
168
169
    test_interrepository_implementations = [
169
170
        'bzrlib.tests.interrepository_implementations.test_fetch',
170
171
        'bzrlib.tests.interrepository_implementations.test_interrepository',
176
177
        None,
177
178
        InterRepositoryTestProviderAdapter.default_test_list()
178
179
        )
179
 
    loader = TestLoader()
 
180
    # add the tests for the sub modules
180
181
    adapt_modules(test_interrepository_implementations, adapter, loader, result)
181
182
    return result