/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/repository_implementations/__init__.py

Merge bzr.dev r3466

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
                          multiply_scenarios,
44
44
                          multiply_tests_from_modules,
45
45
                          TestScenarioApplier,
46
 
                          TestLoader,
47
 
                          TestSuite,
48
46
                          )
49
47
from bzrlib.tests.bzrdir_implementations.test_bzrdir import TestCaseWithBzrDir
50
48
from bzrlib.transport.memory import MemoryServer
839
837
    ]
840
838
 
841
839
 
842
 
def test_suite():
 
840
def load_tests(basic_tests, module, loader):
 
841
    result = loader.suiteClass()
 
842
    # add the tests for this module
 
843
    result.addTests(basic_tests)
843
844
    prefix = 'bzrlib.tests.repository_implementations.'
844
845
    test_repository_modules = [
845
846
        'test_add_fallback_repository',
851
852
        'test_fileid_involved',
852
853
        'test_find_text_key_references',
853
854
        'test__generate_text_key_index',
 
855
        'test_get_parent_map',
854
856
        'test_has_same_location',
855
857
        'test_has_revisions',
856
858
        'test_is_write_locked',
865
867
    module_name_list = [prefix + module_name
866
868
                        for module_name in test_repository_modules]
867
869
 
 
870
    # add the tests for the sub modules
 
871
 
868
872
    # Parameterize repository_implementations test modules by format.
869
873
    format_scenarios = all_repository_format_scenarios()
870
 
    result = multiply_tests_from_modules(module_name_list, format_scenarios)
 
874
    result.addTests(multiply_tests_from_modules(module_name_list,
 
875
                                                format_scenarios,
 
876
                                                loader))
871
877
 
872
878
    # test_check_reconcile needs to be parameterized by format *and* by broken
873
879
    # repository scenario.
877
883
        format_scenarios, broken_scenarios)
878
884
    broken_scenario_applier = TestScenarioApplier()
879
885
    broken_scenario_applier.scenarios = broken_scenarios_for_all_formats
880
 
    loader = TestLoader()
881
886
    adapt_modules(
882
887
        [prefix + 'test_check_reconcile'],
883
888
        broken_scenario_applier, loader, result)