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

  • Committer: Martin Pool
  • Date: 2008-07-21 07:48:30 UTC
  • mfrom: (3564 +trunk)
  • mto: This revision was merged to the branch mainline in revision 3566.
  • Revision ID: mbp@sourcefrog.net-20080721074830-i1pgj2hswpfo6pav
merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
304
304
    """
305
305
 
306
306
    def __init__(self, transport_server, transport_readonly_server, formats):
 
307
        """Create a TreeTestProviderAdapter.
 
308
 
 
309
        :param formats: [workingtree_format]
 
310
        """
307
311
        super(TreeTestProviderAdapter, self).__init__(transport_server,
308
312
            transport_readonly_server, formats)
309
313
        # now adjust the scenarios and add the non-working-tree tree scenarios.
336
340
        if workingtree_format is None:
337
341
            workingtree_format = WorkingTreeFormat._default_format
338
342
        scenario_options = WorkingTreeTestProviderAdapter.create_scenario(self,
339
 
            workingtree_format, workingtree_format._matchingbzrdir)[1]
 
343
            workingtree_format)[1]
340
344
        scenario_options["_workingtree_to_test_tree"] = converter
341
345
        return name, scenario_options
342
346
 
366
370
        # None here will cause a readonly decorator to be created
367
371
        # by the TestCaseWithTransport.get_readonly_transport method.
368
372
        None,
369
 
        [(format, format._matchingbzrdir) for format in
370
 
         WorkingTreeFormat._formats.values() + _legacy_formats])
 
373
        WorkingTreeFormat._formats.values() + _legacy_formats)
371
374
 
372
375
    # add the tests for the sub modules
373
376
    adapt_modules(test_tree_implementations, adapter, loader, result)