/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 breezy/tests/per_intertree/__init__.py

  • Committer: Jelmer Vernooij
  • Date: 2017-05-21 18:10:28 UTC
  • mto: This revision was merged to the branch mainline in revision 6623.
  • Revision ID: jelmer@jelmer.uk-20170521181028-zn04pdfw0od9hfj3
Rename brzlib => breezy.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
 - tests/test_workingtree.py
23
23
"""
24
24
 
25
 
import brzlib
26
 
from brzlib import (
 
25
import breezy
 
26
from breezy import (
27
27
    revisiontree,
28
28
    tests,
29
29
    )
30
 
from brzlib.transform import TransformPreview
31
 
from brzlib.tests import (
 
30
from breezy.transform import TransformPreview
 
31
from breezy.tests import (
32
32
    default_transport,
33
33
    multiply_tests,
34
34
    )
35
 
from brzlib.tests.per_tree import (
 
35
from breezy.tests.per_tree import (
36
36
    return_parameter,
37
37
    revision_tree_from_workingtree,
38
38
    TestCaseWithTree,
39
39
    )
40
 
from brzlib.tree import InterTree
41
 
from brzlib.workingtree_3 import WorkingTreeFormat3
42
 
from brzlib.workingtree_4 import WorkingTreeFormat4
 
40
from breezy.tree import InterTree
 
41
from breezy.workingtree_3 import WorkingTreeFormat3
 
42
from breezy.workingtree_4 import WorkingTreeFormat4
43
43
 
44
44
 
45
45
def return_provided_trees(test_case, source, target):
121
121
def load_tests(standard_tests, module, loader):
122
122
    default_tree_format = WorkingTreeFormat3()
123
123
    submod_tests = loader.loadTestsFromModuleNames([
124
 
        'brzlib.tests.per_intertree.test_compare',
125
 
        'brzlib.tests.per_intertree.test_file_content_matches',
 
124
        'breezy.tests.per_intertree.test_compare',
 
125
        'breezy.tests.per_intertree.test_file_content_matches',
126
126
        ])
127
127
    test_intertree_permutations = [
128
128
        # test InterTree with two default-format working trees.
135
135
            # -- vila 20090311
136
136
            chk_tree_format = WorkingTreeFormat4()
137
137
            chk_tree_format._get_matchingbzrdir = \
138
 
                lambda:brzlib.controldir.format_registry.make_bzrdir('2a')
 
138
                lambda:breezy.controldir.format_registry.make_bzrdir('2a')
139
139
            test_intertree_permutations.append(
140
140
                (InterTree.__name__ + "(CHKInventory)",
141
141
                 InterTree,
142
142
                 chk_tree_format,
143
143
                 chk_tree_format,
144
144
                 mutable_trees_to_revision_trees))
145
 
        elif optimiser is brzlib.workingtree_4.InterDirStateTree:
 
145
        elif optimiser is breezy.workingtree_4.InterDirStateTree:
146
146
            # Its a little ugly to be conditional here, but less so than having
147
147
            # the optimiser listed twice.
148
148
            # Add once, compiled version