/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

  • Committer: Benoît Pierre
  • Date: 2009-02-24 00:25:32 UTC
  • mfrom: (4035 +trunk)
  • mto: (4056.1.1 trunk2)
  • mto: This revision was merged to the branch mainline in revision 4058.
  • Revision ID: benoit.pierre@gmail.com-20090224002532-i2f64ou15pa7if2y
Merge with upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
"""Branch implementation tests for bzr.
21
21
 
22
22
These test the conformance of all the branch variations to the expected API.
23
 
Specific tests for individual formats are in the tests/test_branch file 
 
23
Specific tests for individual formats are in the tests/test_branch file
24
24
rather than in tests/branch_implementations/*.py.
25
25
"""
26
26
 
57
57
        self._transport_readonly_server = transport_readonly_server
58
58
        self._name_suffix = name_suffix
59
59
        self.scenarios = self.formats_to_scenarios(formats)
60
 
    
 
60
 
61
61
    def formats_to_scenarios(self, formats):
62
62
        """Transform the input formats to a list of scenarios.
63
63
 
101
101
        except errors.UninitializableFormat:
102
102
            raise tests.TestSkipped('Uninitializable branch format')
103
103
 
 
104
    def make_branch_builder(self, relpath, format=None):
 
105
        if format is None:
 
106
            format = self.branch_format._matchingbzrdir
 
107
        return super(TestCaseWithBranch, self).make_branch_builder(
 
108
            relpath, format=format)
 
109
 
104
110
    def make_repository(self, relpath, shared=False, format=None):
105
111
        made_control = self.make_bzrdir(relpath, format=format)
106
112
        return made_control.create_repository(shared=shared)
151
157
        'bzrlib.tests.branch_implementations.test_check',
152
158
        'bzrlib.tests.branch_implementations.test_create_checkout',
153
159
        'bzrlib.tests.branch_implementations.test_commit',
 
160
        'bzrlib.tests.branch_implementations.test_dotted_revno_to_revision_id',
154
161
        'bzrlib.tests.branch_implementations.test_get_revision_id_to_revno_map',
155
162
        'bzrlib.tests.branch_implementations.test_hooks',
156
163
        'bzrlib.tests.branch_implementations.test_http',
 
164
        'bzrlib.tests.branch_implementations.test_iter_merge_sorted_revisions',
157
165
        'bzrlib.tests.branch_implementations.test_last_revision_info',
158
166
        'bzrlib.tests.branch_implementations.test_locking',
159
167
        'bzrlib.tests.branch_implementations.test_parent',
162
170
        'bzrlib.tests.branch_implementations.test_push',
163
171
        'bzrlib.tests.branch_implementations.test_reconcile',
164
172
        'bzrlib.tests.branch_implementations.test_revision_history',
 
173
        'bzrlib.tests.branch_implementations.test_revision_id_to_dotted_revno',
165
174
        'bzrlib.tests.branch_implementations.test_revision_id_to_revno',
166
175
        'bzrlib.tests.branch_implementations.test_sprout',
167
176
        'bzrlib.tests.branch_implementations.test_stacking',
171
180
        ]
172
181
    # Generate a list of branch formats and their associated bzrdir formats to
173
182
    # use.
174
 
    combinations = [(format, format._matchingbzrdir) for format in 
 
183
    combinations = [(format, format._matchingbzrdir) for format in
175
184
         BranchFormat._formats.values() + _legacy_formats]
176
185
    adapter = BranchTestProviderAdapter(
177
186
        # None here will cause the default vfs transport server to be used.