/breezy/unstable

To get this branch, use:
bzr branch https://code.breezy-vcs.org/breezy/unstable

« back to all changes in this revision

Viewing changes to breezy/tests/per_tree/__init__.py

  • Committer: Jelmer Vernooij
  • Date: 2017-05-24 01:39:33 UTC
  • mfrom: (3815.3776.6)
  • Revision ID: jelmer@jelmer.uk-20170524013933-ir4y4tqtrsiz2ka2
New upstream snapshot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
 - tests/test_workingtree.py
26
26
"""
27
27
 
28
 
from bzrlib import (
 
28
from breezy import (
29
29
    errors,
30
30
    tests,
31
31
    transform,
32
32
    transport,
33
33
    )
34
 
from bzrlib.tests.per_controldir.test_controldir import TestCaseWithControlDir
35
 
from bzrlib.tests.per_workingtree import (
 
34
from breezy.tests.per_controldir.test_controldir import TestCaseWithControlDir
 
35
from breezy.tests.per_workingtree import (
36
36
    make_scenarios as wt_make_scenarios,
37
37
    make_scenario as wt_make_scenario,
38
38
    )
39
 
from bzrlib.revisiontree import RevisionTree
40
 
from bzrlib.transform import TransformPreview
41
 
from bzrlib.tests import (
 
39
from breezy.revisiontree import RevisionTree
 
40
from breezy.transform import TransformPreview
 
41
from breezy.tests import (
42
42
    features,
43
43
    )
44
 
from bzrlib.workingtree import (
 
44
from breezy.workingtree import (
45
45
    format_registry,
46
46
    )
47
 
from bzrlib.workingtree_4 import (
 
47
from breezy.workingtree_4 import (
48
48
    DirStateRevisionTree,
49
49
    WorkingTreeFormat4,
50
50
    WorkingTreeFormat5,
243
243
                            Note: if you wish to automatically set this
244
244
                            parameters depending on underlying system,
245
245
                            please use value returned
246
 
                            by bzrlib.osutils.has_symlinks() function.
 
246
                            by breezy.osutils.has_symlinks() function.
247
247
 
248
248
        The returned tree has the following inventory:
249
249
            [('', inventory.ROOT_ID),
336
336
 
337
337
 
338
338
def make_scenarios(transport_server, transport_readonly_server, formats):
339
 
    """Generate test suites for each Tree implementation in bzrlib.
 
339
    """Generate test suites for each Tree implementation in breezy.
340
340
 
341
341
    Currently this covers all working tree formats, and RevisionTree and
342
342
    DirStateRevisionTree by committing a working tree to create the revision
388
388
    return scenario_options
389
389
 
390
390
 
391
 
def load_tests(standard_tests, module, loader):
 
391
def load_tests(loader, standard_tests, pattern):
392
392
    per_tree_mod_names = [
393
393
        'annotate_iter',
394
394
        'export',
409
409
        'walkdirs',
410
410
        ]
411
411
    submod_tests = loader.loadTestsFromModuleNames(
412
 
        ['bzrlib.tests.per_tree.test_' + name
 
412
        ['breezy.tests.per_tree.test_' + name
413
413
         for name in per_tree_mod_names])
414
414
    scenarios = make_scenarios(
415
415
        tests.default_transport,