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

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2020-06-19 22:18:01 UTC
  • mfrom: (7515.1.1 merge-3.1)
  • Revision ID: breezy.the.bot@gmail.com-20200619221801-6chb6w22ctckkajl
Merge lp:brz/3.1.

Merged from https://code.launchpad.net/~jelmer/brz/merge-3.1/+merge/386125

Show diffs side-by-side

added added

removed removed

Lines of Context:
197
197
        self.requireFeature(DulwichFeature)
198
198
 
199
199
 
200
 
def test_suite():
201
 
    loader = tests.TestUtil.TestLoader()
 
200
def load_tests(loader, basic_tests, pattern):
 
201
    suite = loader.suiteClass()
 
202
    # add the tests for this module
 
203
    suite.addTests(basic_tests)
202
204
 
203
 
    suite = tests.TestUtil.TestSuite()
 
205
    prefix = __name__ + '.'
204
206
 
205
207
    if not DulwichFeature.available():
206
208
        suite.addTests(loader.loadTestsFromTestCase(MissingFeature))
230
232
        'test_urls',
231
233
        'test_workingtree',
232
234
        ]
233
 
    testmod_names = ['%s.%s' % (__name__, t) for t in testmod_names]
234
 
    suite.addTests(loader.loadTestsFromModuleNames(testmod_names))
235
235
 
 
236
    # add the tests for the sub modules
 
237
    suite.addTests(loader.loadTestsFromModuleNames(
 
238
        [prefix + module_name for module_name in testmod_names]))
236
239
    return suite