/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_repository_chk/__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:
23
23
run.
24
24
"""
25
25
 
26
 
from bzrlib import (
 
26
from breezy import (
27
27
    repository,
28
28
    remote,
29
29
    )
30
 
from bzrlib.repofmt.knitpack_repo import (
 
30
from breezy.repofmt.knitpack_repo import (
31
31
    RepositoryFormatKnitPack5,
32
32
    )
33
 
from bzrlib.repofmt.groupcompress_repo import (
 
33
from breezy.repofmt.groupcompress_repo import (
34
34
    RepositoryFormat2a,
35
35
    )
36
 
from bzrlib.tests import (
 
36
from breezy.tests import (
37
37
    multiply_tests,
38
38
    )
39
 
from bzrlib.tests.per_repository import (
 
39
from breezy.tests.per_repository import (
40
40
    all_repository_format_scenarios,
41
41
    TestCaseWithRepository,
42
42
    )
49
49
        return repository.Repository.open(self.get_transport(path).base)
50
50
 
51
51
 
52
 
def load_tests(standard_tests, module, loader):
 
52
def load_tests(loader, standard_tests, pattern):
53
53
    supported_scenarios = []
54
54
    unsupported_scenarios = []
55
55
    for test_name, scenario_info in all_repository_format_scenarios():
72
72
            unsupported_scenarios.append((test_name, scenario_info))
73
73
    result = loader.suiteClass()
74
74
    supported_tests = loader.loadTestsFromModuleNames([
75
 
        'bzrlib.tests.per_repository_chk.test_supported'])
 
75
        'breezy.tests.per_repository_chk.test_supported'])
76
76
    unsupported_tests = loader.loadTestsFromModuleNames([
77
 
        'bzrlib.tests.per_repository_chk.test_unsupported'])
 
77
        'breezy.tests.per_repository_chk.test_unsupported'])
78
78
    multiply_tests(supported_tests, supported_scenarios, result)
79
79
    multiply_tests(unsupported_tests, unsupported_scenarios, result)
80
80
    return result