~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/per_branch/__init__.py

  • Committer: Martin Pool
  • Date: 2009-07-24 03:15:56 UTC
  • mfrom: (4565 +trunk)
  • mto: This revision was merged to the branch mainline in revision 4566.
  • Revision ID: mbp@sourcefrog.net-20090724031556-5zyef6f1ixtn6r3z
merge news

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
 
22
22
These test the conformance of all the branch variations to the expected API.
23
23
Specific tests for individual formats are in the tests/test_branch file
24
 
rather than in tests/branch_implementations/*.py.
 
24
rather than in tests/per_branch/*.py.
25
25
"""
26
26
 
27
27
from bzrlib import (
38
38
    SmartTCPServer_for_testing,
39
39
    SmartTCPServer_for_testing_v2_only,
40
40
    )
41
 
from bzrlib.tests.bzrdir_implementations.test_bzrdir import TestCaseWithBzrDir
 
41
from bzrlib.tests.per_bzrdir.test_bzrdir import TestCaseWithBzrDir
42
42
from bzrlib.transport.memory import MemoryServer
43
43
 
44
44
 
163
163
 
164
164
 
165
165
def load_tests(standard_tests, module, loader):
166
 
    test_branch_implementations = [
167
 
        'bzrlib.tests.branch_implementations.test_bound_sftp',
168
 
        'bzrlib.tests.branch_implementations.test_branch',
169
 
        'bzrlib.tests.branch_implementations.test_break_lock',
170
 
        'bzrlib.tests.branch_implementations.test_check',
171
 
        'bzrlib.tests.branch_implementations.test_create_checkout',
172
 
        'bzrlib.tests.branch_implementations.test_create_clone',
173
 
        'bzrlib.tests.branch_implementations.test_commit',
174
 
        'bzrlib.tests.branch_implementations.test_dotted_revno_to_revision_id',
175
 
        'bzrlib.tests.branch_implementations.test_get_revision_id_to_revno_map',
176
 
        'bzrlib.tests.branch_implementations.test_hooks',
177
 
        'bzrlib.tests.branch_implementations.test_http',
178
 
        'bzrlib.tests.branch_implementations.test_iter_merge_sorted_revisions',
179
 
        'bzrlib.tests.branch_implementations.test_last_revision_info',
180
 
        'bzrlib.tests.branch_implementations.test_locking',
181
 
        'bzrlib.tests.branch_implementations.test_parent',
182
 
        'bzrlib.tests.branch_implementations.test_permissions',
183
 
        'bzrlib.tests.branch_implementations.test_pull',
184
 
        'bzrlib.tests.branch_implementations.test_push',
185
 
        'bzrlib.tests.branch_implementations.test_reconcile',
186
 
        'bzrlib.tests.branch_implementations.test_revision_history',
187
 
        'bzrlib.tests.branch_implementations.test_revision_id_to_dotted_revno',
188
 
        'bzrlib.tests.branch_implementations.test_revision_id_to_revno',
189
 
        'bzrlib.tests.branch_implementations.test_sprout',
190
 
        'bzrlib.tests.branch_implementations.test_stacking',
191
 
        'bzrlib.tests.branch_implementations.test_tags',
192
 
        'bzrlib.tests.branch_implementations.test_uncommit',
193
 
        'bzrlib.tests.branch_implementations.test_update',
 
166
    per_branch_mod_names = [
 
167
        'bound_sftp',
 
168
        'branch',
 
169
        'break_lock',
 
170
        'check',
 
171
        'create_checkout',
 
172
        'create_clone',
 
173
        'commit',
 
174
        'dotted_revno_to_revision_id',
 
175
        'get_revision_id_to_revno_map',
 
176
        'hooks',
 
177
        'http',
 
178
        'iter_merge_sorted_revisions',
 
179
        'last_revision_info',
 
180
        'locking',
 
181
        'parent',
 
182
        'permissions',
 
183
        'pull',
 
184
        'push',
 
185
        'reconcile',
 
186
        'revision_history',
 
187
        'revision_id_to_dotted_revno',
 
188
        'revision_id_to_revno',
 
189
        'sprout',
 
190
        'stacking',
 
191
        'tags',
 
192
        'uncommit',
 
193
        'update',
194
194
        ]
195
 
    sub_tests = loader.loadTestsFromModuleNames(test_branch_implementations)
 
195
    sub_tests = loader.loadTestsFromModuleNames(
 
196
        ['bzrlib.tests.per_branch.test_' + name
 
197
         for name in per_branch_mod_names])
196
198
    return tests.multiply_tests(sub_tests, branch_scenarios(), standard_tests)