28
28
BranchTestProviderAdapter,
31
from bzrlib.smart.server import (
32
SmartTCPServer_for_testing,
33
ReadonlySmartTCPServer_for_testing,
31
35
from bzrlib.tests import (
40
from bzrlib.remote import RemoteBranchFormat, RemoteBzrDirFormat
41
from bzrlib.transport.memory import MemoryServer
42
47
'bzrlib.tests.branch_implementations.test_bound_sftp',
43
48
'bzrlib.tests.branch_implementations.test_branch',
44
49
'bzrlib.tests.branch_implementations.test_break_lock',
50
'bzrlib.tests.branch_implementations.test_create_checkout',
45
51
'bzrlib.tests.branch_implementations.test_commit',
46
52
'bzrlib.tests.branch_implementations.test_hooks',
47
53
'bzrlib.tests.branch_implementations.test_http',
50
56
'bzrlib.tests.branch_implementations.test_parent',
51
57
'bzrlib.tests.branch_implementations.test_permissions',
52
58
'bzrlib.tests.branch_implementations.test_pull',
59
'bzrlib.tests.branch_implementations.test_push',
60
'bzrlib.tests.branch_implementations.test_revision_history',
53
61
'bzrlib.tests.branch_implementations.test_tags',
54
'bzrlib.tests.branch_implementations.test_push',
55
62
'bzrlib.tests.branch_implementations.test_uncommit',
56
63
'bzrlib.tests.branch_implementations.test_update',
65
# Generate a list of branch formats and their associated bzrdir formats to
67
combinations = [(format, format._matchingbzrdir) for format in
68
BranchFormat._formats.values() + _legacy_formats]
58
69
adapter = BranchTestProviderAdapter(
70
# None here will cause the default vfs transport server to be used.
60
72
# None here will cause a readonly decorator to be created
61
73
# by the TestCaseWithTransport.get_readonly_transport method.
63
[(format, format._matchingbzrdir) for format in
64
BranchFormat._formats.values() + _legacy_formats])
65
76
loader = TestLoader()
66
77
adapt_modules(test_branch_implementations, adapter, loader, result)
80
adapt_to_smart_server = BranchTestProviderAdapter(
81
SmartTCPServer_for_testing,
82
ReadonlySmartTCPServer_for_testing,
83
[(RemoteBranchFormat(), RemoteBzrDirFormat())],
86
adapt_modules(test_branch_implementations,
87
adapt_to_smart_server,