~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_config.py

(vila) Migrate branch location options to config stacks. (Vincent Ladeuil)

Show diffs side-by-side

added added

removed removed

Lines of Context:
145
145
config.test_stack_builder_registry.register('branch', build_branch_stack)
146
146
 
147
147
 
148
 
def build_remote_branch_stack(test):
 
148
def build_branch_only_stack(test):
149
149
    # There is only one permutation (but we won't be able to handle more with
150
150
    # this design anyway)
151
151
    (transport_class,
152
152
     server_class) = transport_remote.get_test_permutations()[0]
153
153
    build_backing_branch(test, 'branch', transport_class, server_class)
154
154
    b = branch.Branch.open(test.get_url('branch'))
155
 
    return config.RemoteBranchStack(b)
156
 
config.test_stack_builder_registry.register('remote_branch',
157
 
                                            build_remote_branch_stack)
 
155
    return config.BranchOnlyStack(b)
 
156
config.test_stack_builder_registry.register('branch_only',
 
157
                                            build_branch_only_stack)
158
158
 
159
159
def build_remote_control_stack(test):
160
160
    # There is only one permutation (but we won't be able to handle more with