MCPcopy Index your code
hub / github.com/python/cpython / loadTestsFromNames

Method loadTestsFromNames

Lib/unittest/loader.py:203–208  ·  view source on GitHub ↗

Return a suite of all test cases found using the given sequence of string specifiers. See 'loadTestsFromName()'.

(self, names, module=None)

Source from the content-addressed store, hash-verified

201 raise TypeError("don't know how to make test from: %s" % obj)
202
203 def loadTestsFromNames(self, names, module=None):
204 """Return a suite of all test cases found using the given sequence
205 of string specifiers. See 'loadTestsFromName()'.
206 """
207 suites = [self.loadTestsFromName(name, module) for name in names]
208 return self.suiteClass(suites)
209
210 def getTestCaseNames(self, testCaseClass):
211 """Return a sorted sequence of method names found within testCaseClass

Callers 1

createTestsMethod · 0.45

Calls 1

loadTestsFromNameMethod · 0.95

Tested by

no test coverage detected