/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

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

bzrlib.tests.inventory_implementations and
bzrlib.tests.repository_implementations switched from test_suite() to
load_tests().


* bzrlib/tests/__init__.py:
(test_suite): bzrlib.tests.inventory_implementations and
bzrlib.tests.repository_implementations moved from
packages_to_test to testmod_names. Poor packages_to_test is now
empty :)

* bzrlib/tests/repository_implementations/__init__.py:
(load_tests): Preferred to test_suite().

* bzrlib/tests/inventory_implementations/__init__.py:
(load_tests): Preferred to test_suite().

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
    suite.addTests(multiply_tests_from_modules(modules_to_test,
 
46
                                               _inventory_test_scenarios(),
 
47
                                               loader))
 
48
    return suite