~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/__init__.py

  • Committer: Robert Collins
  • Date: 2005-11-29 22:43:27 UTC
  • Revision ID: robertc@robertcollins.net-20051129224327-ea254360b6b77a3a
    * Plugins with the same name in different directories in the bzr plugin
      path are no longer loaded: only the first successfully loaded one is
      used. (Robert Collins)

    * bzrlib.plugin.all_plugins has been removed, instead look in
      bzrlib.plugins. (Robert Collins)

Show diffs side-by-side

added added

removed removed

Lines of Context:
614
614
    testmod_names = \
615
615
                  ['bzrlib.tests.MetaTestLog',
616
616
                   'bzrlib.tests.test_api',
 
617
                   'bzrlib.tests.test_basicio',
617
618
                   'bzrlib.tests.test_gpg',
618
619
                   'bzrlib.tests.test_identitymap',
619
620
                   'bzrlib.tests.test_inv',
656
657
                   'bzrlib.tests.test_options',
657
658
                   'bzrlib.tests.test_http',
658
659
                   'bzrlib.tests.test_nonascii',
 
660
                   'bzrlib.tests.test_plugins',
659
661
                   'bzrlib.tests.test_reweave',
660
662
                   'bzrlib.tests.test_tsort',
661
663
                   'bzrlib.tests.test_trace',
662
 
                   'bzrlib.tests.test_basicio',
663
664
                   ]
664
665
 
665
666
    TestCase.BZRPATH = os.path.join(os.path.realpath(os.path.dirname(bzrlib.__path__[0])), 'bzr')
673
674
        suite.addTest(TestLoader().loadTestsFromModule(m))
674
675
    for m in (MODULES_TO_DOCTEST):
675
676
        suite.addTest(DocTestSuite(m))
676
 
    for p in bzrlib.plugin.all_plugins:
 
677
    for p in bzrlib.plugins.__dict__:
677
678
        if hasattr(p, 'test_suite'):
678
679
            suite.addTest(p.test_suite())
679
680
    return suite