~bzr/bzr/bzr.1.5

« back to all changes in this revision

Viewing changes to bzrlib/tests/inventory_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:
33
33
    yield ('Inventory', dict(inventory_class=Inventory))
34
34
 
35
35
 
36
 
def test_suite():
 
36
def load_tests(basic_tests, module, loader):
37
37
    """Generate suite containing all parameterized tests"""
 
38
    suite = loader.suiteClass()
 
39
    # add the tests for this module
 
40
    suite.addTests(basic_tests)
 
41
 
38
42
    modules_to_test = [
39
 
            'bzrlib.tests.inventory_implementations.basics',
40
 
            ]
41
 
    return multiply_tests_from_modules(modules_to_test,
42
 
            _inventory_test_scenarios())
 
43
        'bzrlib.tests.inventory_implementations.basics',
 
44
        ]
 
45
    # add the tests for the sub modules
 
46
    suite.addTests(multiply_tests_from_modules(modules_to_test,
 
47
                                               _inventory_test_scenarios(),
 
48
                                               loader))
 
49
    return suite