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

  • Committer: Jelmer Vernooij
  • Date: 2011-01-19 20:33:43 UTC
  • mto: (5582.10.33 weave-fmt-plugin)
  • mto: This revision was merged to the branch mainline in revision 5718.
  • Revision ID: jelmer@samba.org-20110119203343-64emzcqxwpy8ysim
Simplify the test suite.

Show diffs side-by-side

added added

removed removed

Lines of Context:
372
372
    return scenario_options
373
373
 
374
374
 
375
 
def load_tests(standard_tests, module, loader):
 
375
def per_tree_tests(loader):
376
376
    per_tree_mod_names = [
377
377
        'annotate_iter',
378
378
        'get_file_mtime',
390
390
        'tree',
391
391
        'walkdirs',
392
392
        ]
393
 
    submod_tests = loader.loadTestsFromModuleNames(
 
393
    return loader.loadTestsFromModuleNames(
394
394
        ['bzrlib.tests.per_tree.test_' + name
395
395
         for name in per_tree_mod_names])
 
396
 
 
397
 
 
398
def load_tests(standard_tests, module, loader):
396
399
    scenarios = make_scenarios(
397
400
        tests.default_transport,
398
401
        # None here will cause a readonly decorator to be created
399
402
        # by the TestCaseWithTransport.get_readonly_transport method.
400
403
        None,
401
 
        WorkingTreeFormat._formats.values() + _legacy_formats)
 
404
        WorkingTreeFormat._formats.values())
402
405
    # add the tests for the sub modules
403
 
    return tests.multiply_tests(submod_tests, scenarios, standard_tests)
 
406
    return tests.multiply_tests(per_tree_tests(loader), scenarios, standard_tests)