~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/plugins/launchpad/__init__.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-11-03 03:58:26 UTC
  • mfrom: (4668.1.5 2.1.0b2)
  • Revision ID: pqm@pqm.ubuntu.com-20091103035826-tr4qa6fznzmirgiq
(jam) Merge 2.1.0b2 (-final) to bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
262
262
_register_directory()
263
263
 
264
264
 
265
 
def test_suite():
266
 
    """Called by bzrlib to fetch tests for this plugin"""
267
 
    from unittest import TestSuite, TestLoader
268
 
    from bzrlib.plugins.launchpad import (
269
 
        test_account,
270
 
        test_lp_directory,
271
 
        test_lp_login,
272
 
        test_lp_open,
273
 
        test_lp_service,
274
 
        test_register,
275
 
        )
 
265
def load_tests(basic_tests, module, loader):
 
266
    testmod_names = [
 
267
        'test_account',
 
268
        'test_register',
 
269
        'test_lp_directory',
 
270
        'test_lp_login',
 
271
        'test_lp_open',
 
272
        'test_lp_service',
 
273
        ]
 
274
    basic_tests.addTest(loader.loadTestsFromModuleNames(
 
275
            ["%s.%s" % (__name__, tmn) for tmn in testmod_names]))
 
276
    return basic_tests
276
277
 
277
 
    loader = TestLoader()
278
 
    suite = TestSuite()
279
 
    for module in [
280
 
        test_account,
281
 
        test_register,
282
 
        test_lp_directory,
283
 
        test_lp_login,
284
 
        test_lp_open,
285
 
        test_lp_service,
286
 
        ]:
287
 
        suite.addTests(loader.loadTestsFromModule(module))
288
 
    return suite
289
278
 
290
279
_launchpad_help = """Integration with Launchpad.net
291
280