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

Merge some local commits: a WSGI+chroot test fix, and include RemoteBranch in the branch_implementations tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
52
52
        'bzrlib.tests.branch_implementations.test_push',
53
53
        'bzrlib.tests.branch_implementations.test_update',
54
54
        ]
 
55
    # Generate a list of branch formats and their associated bzrdir formats to
 
56
    # use.
55
57
    combinations = [(format, format._matchingbzrdir) for format in 
56
58
         BranchFormat._formats.values() + _legacy_formats]
57
59
    # TODO: To usefully test the SmartServer, we need to specify the bzrdir
64
66
        combinations)
65
67
    loader = TestLoader()
66
68
    adapt_modules(test_branch_implementations, adapter, loader, result)
 
69
 
 
70
 
 
71
    from bzrlib.smart.server import (
 
72
        SmartTCPServer_for_testing,
 
73
        ReadonlySmartTCPServer_for_testing,
 
74
        )
 
75
    from bzrlib.remote import RemoteBranchFormat, RemoteBzrDirFormat
 
76
    from bzrlib.transport.memory import MemoryServer
 
77
    adapt_to_smart_server = BranchTestProviderAdapter(
 
78
        SmartTCPServer_for_testing,
 
79
        ReadonlySmartTCPServer_for_testing,
 
80
        [(RemoteBranchFormat(), RemoteBzrDirFormat())],
 
81
        MemoryServer
 
82
        )
 
83
    adapt_modules(test_branch_implementations,
 
84
                  adapt_to_smart_server,
 
85
                  loader,
 
86
                  result)
 
87
 
67
88
    return result