/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_branch/__init__.py

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2018-11-16 18:59:44 UTC
  • mfrom: (7143.15.15 more-cleanups)
  • Revision ID: breezy.the.bot@gmail.com-20181116185944-biefv1sub37qfybm
Sprinkle some PEP8iness.

Merged from https://code.launchpad.net/~jelmer/brz/more-cleanups/+merge/358611

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
 
37
37
 
38
38
def make_scenarios(transport_server, transport_readonly_server,
39
 
    formats, vfs_transport_factory=None, name_suffix=''):
 
39
                   formats, vfs_transport_factory=None, name_suffix=''):
40
40
    """Transform the input formats to a list of scenarios.
41
41
 
42
42
    :param formats: A list of (branch_format, bzrdir_format).
46
46
        # some branches don't have separate format objects.
47
47
        # so we have a conditional here to handle them.
48
48
        scenario_name = getattr(branch_format, '__name__',
49
 
            branch_format.__class__.__name__)
 
49
                                branch_format.__class__.__name__)
50
50
        scenario_name += name_suffix
51
51
        scenario = (scenario_name, {
52
52
            "transport_server": transport_server,
53
53
            "transport_readonly_server": transport_readonly_server,
54
54
            "bzrdir_format": bzrdir_format,
55
55
            "branch_format": branch_format,
56
 
                })
 
56
            })
57
57
        result.append(scenario)
58
58
    return result
59
59
 
118
118
    # Generate a list of branch formats and their associated bzrdir formats to
119
119
    # use.
120
120
    combinations = [(format, format._matchingcontroldir) for format in
121
 
         format_registry._get_all()]
 
121
                    format_registry._get_all()]
122
122
    scenarios = make_scenarios(
123
123
        # None here will cause the default vfs transport server to be used.
124
124
        None,