/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 bzrlib/plugins/launchpad/__init__.py

  • Committer: John Arbash Meinel
  • Date: 2008-03-14 10:55:37 UTC
  • mfrom: (3275 +trunk)
  • mto: This revision was merged to the branch mainline in revision 3281.
  • Revision ID: john@arbash-meinel.com-20080314105537-v9h2ue0uxvs1dyn6
[merge] bzr.dev 3275

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2006, 2007 Canonical Ltd
 
1
# Copyright (C) 2006 - 2008 Canonical Ltd
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
23
23
 
24
24
from bzrlib.branch import Branch
25
25
from bzrlib.commands import Command, Option, register_command
 
26
from bzrlib.directory_service import directories
26
27
from bzrlib.errors import BzrCommandError, NoPublicBranch, NotBranchError
27
 
from bzrlib.transport import register_lazy_transport
28
28
from bzrlib.help_topics import topic_registry
29
29
 
30
30
 
171
171
register_command(cmd_launchpad_login)
172
172
 
173
173
 
174
 
register_lazy_transport(
175
 
    'lp:',
176
 
    'bzrlib.plugins.launchpad.lp_indirect',
177
 
    'LaunchpadTransport')
 
174
def _register_directory():
 
175
    directories.register_lazy('lp:', 'bzrlib.plugins.launchpad.lp_directory',
 
176
                              'LaunchpadDirectory',
 
177
                              'Launchpad-based directory service',)
 
178
_register_directory()
178
179
 
179
180
 
180
181
def test_suite():
181
182
    """Called by bzrlib to fetch tests for this plugin"""
182
183
    from unittest import TestSuite, TestLoader
183
184
    from bzrlib.plugins.launchpad import (
184
 
        test_register, test_lp_indirect, test_lp_registration, test_account)
 
185
         test_account, test_lp_directory, test_lp_service, test_register,
 
186
         )
185
187
 
186
188
    loader = TestLoader()
187
189
    suite = TestSuite()
188
 
    for m in [
 
190
    for module in [
189
191
        test_account,
190
192
        test_register,
191
 
        test_lp_indirect,
192
 
        test_lp_registration,
 
193
        test_lp_directory,
 
194
        test_lp_service,
193
195
        ]:
194
 
        suite.addTests(loader.loadTestsFromModule(m))
 
196
        suite.addTests(loader.loadTestsFromModule(module))
195
197
    return suite
196
198
 
197
199
_launchpad_help = """Integration with Launchpad.net