/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: Jelmer Vernooij
  • Date: 2020-06-19 21:26:53 UTC
  • mfrom: (7490.40.19 work)
  • mto: This revision was merged to the branch mainline in revision 7516.
  • Revision ID: jelmer@jelmer.uk-20200619212653-7j6rgywzczhc8cmj
Merge lp:brz/3.1.

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