~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Martin Pool
  • Date: 2006-03-06 11:20:10 UTC
  • mfrom: (1593 +trunk)
  • mto: This revision was merged to the branch mainline in revision 1611.
  • Revision ID: mbp@sourcefrog.net-20060306112010-17c0170dde5d1eea
[merge] large merge to sync with bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
rather than in tests/branch_implementations/*.py.
25
25
"""
26
26
 
27
 
from bzrlib.branch import BranchTestProviderAdapter, BzrBranchFormat
 
27
from bzrlib.branch import (BranchFormat,
 
28
                           BranchTestProviderAdapter,
 
29
                           _legacy_formats,
 
30
                           )
28
31
from bzrlib.tests import (
29
32
                          adapt_modules,
30
33
                          default_transport,
36
39
def test_suite():
37
40
    result = TestSuite()
38
41
    test_branch_implementations = [
 
42
        'bzrlib.tests.branch_implementations.test_bound_sftp',
39
43
        'bzrlib.tests.branch_implementations.test_branch',
 
44
        'bzrlib.tests.branch_implementations.test_parent',
 
45
        'bzrlib.tests.branch_implementations.test_permissions',
 
46
        'bzrlib.tests.branch_implementations.test_update',
40
47
        ]
41
48
    adapter = BranchTestProviderAdapter(
42
49
        default_transport,
43
50
        # None here will cause a readonly decorator to be created
44
51
        # by the TestCaseWithTransport.get_readonly_transport method.
45
52
        None,
46
 
        BzrBranchFormat._formats.values())
 
53
        [(format, format._matchingbzrdir) for format in 
 
54
         BranchFormat._formats.values() + _legacy_formats])
47
55
    loader = TestLoader()
48
56
    adapt_modules(test_branch_implementations, adapter, loader, result)
49
57
    return result