~bzr/bzr/bzr.1.5

« back to all changes in this revision

Viewing changes to bzrlib/tests/branch_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:
135
135
        return tree
136
136
 
137
137
 
138
 
def test_suite():
139
 
    result = tests.TestSuite()
 
138
def load_tests(basic_tests, module, loader):
 
139
    result = loader.suiteClass()
 
140
    # add the tests for this module
 
141
    result.addTests(basic_tests)
 
142
 
140
143
    test_branch_implementations = [
141
144
        'bzrlib.tests.branch_implementations.test_bound_sftp',
142
145
        'bzrlib.tests.branch_implementations.test_branch',
172
175
        # by the TestCaseWithTransport.get_readonly_transport method.
173
176
        None,
174
177
        combinations)
175
 
    loader = tests.TestLoader()
 
178
    # add the tests for the sub modules
176
179
    tests.adapt_modules(test_branch_implementations, adapter, loader, result)
177
180
 
178
181
    adapt_to_smart_server = BranchTestProviderAdapter(