~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Robert Collins
  • Date: 2009-08-04 04:36:34 UTC
  • mfrom: (4583 +trunk)
  • mto: This revision was merged to the branch mainline in revision 4593.
  • Revision ID: robertc@robertcollins.net-20090804043634-2iu9wpcgs273i97s
Merge bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
 
20
20
These test the conformance of all the tree variations to the expected API.
21
21
Specific tests for individual variations are in other places such as:
 
22
 - tests/per_workingtree/*.py.
22
23
 - tests/test_tree.py
23
24
 - tests/test_revision.py
24
25
 - tests/test_workingtree.py
25
 
 - tests/workingtree_implementations/*.py.
26
26
"""
27
27
 
28
28
from bzrlib import (
32
32
    tests,
33
33
    transform,
34
34
    )
35
 
from bzrlib.tests.bzrdir_implementations.test_bzrdir import TestCaseWithBzrDir
36
 
from bzrlib.tests.workingtree_implementations import (
 
35
from bzrlib.tests.per_bzrdir.test_bzrdir import TestCaseWithBzrDir
 
36
from bzrlib.tests.per_workingtree import (
37
37
    make_scenarios as wt_make_scenarios,
38
38
    make_scenario as wt_make_scenario,
39
39
    )
362
362
 
363
363
 
364
364
def load_tests(standard_tests, module, loader):
365
 
    submod_tests = loader.loadTestsFromModuleNames([
366
 
        'bzrlib.tests.tree_implementations.test_annotate_iter',
367
 
        'bzrlib.tests.tree_implementations.test_get_file_mtime',
368
 
        'bzrlib.tests.tree_implementations.test_get_file_with_stat',
369
 
        'bzrlib.tests.tree_implementations.test_get_root_id',
370
 
        'bzrlib.tests.tree_implementations.test_get_symlink_target',
371
 
        'bzrlib.tests.tree_implementations.test_inv',
372
 
        'bzrlib.tests.tree_implementations.test_iter_search_rules',
373
 
        'bzrlib.tests.tree_implementations.test_list_files',
374
 
        'bzrlib.tests.tree_implementations.test_path_content_summary',
375
 
        'bzrlib.tests.tree_implementations.test_revision_tree',
376
 
        'bzrlib.tests.tree_implementations.test_test_trees',
377
 
        'bzrlib.tests.tree_implementations.test_tree',
378
 
        'bzrlib.tests.tree_implementations.test_walkdirs',
379
 
        ])
 
365
    per_tree_mod_names = [
 
366
        'annotate_iter',
 
367
        'get_file_mtime',
 
368
        'get_file_with_stat',
 
369
        'get_root_id',
 
370
        'get_symlink_target',
 
371
        'inv',
 
372
        'iter_search_rules',
 
373
        'list_files',
 
374
        'path_content_summary',
 
375
        'revision_tree',
 
376
        'test_trees',
 
377
        'tree',
 
378
        'walkdirs',
 
379
        ]
 
380
    submod_tests = loader.loadTestsFromModuleNames(
 
381
        ['bzrlib.tests.per_tree.test_' + name
 
382
         for name in per_tree_mod_names])
380
383
    scenarios = make_scenarios(
381
384
        tests.default_transport,
382
385
        # None here will cause a readonly decorator to be created