PyDocs

Nav

Development Tools

TestLoader.loadTestsFromName

  • TestLoader.loadTestsFromName(name, module=None)
Return a suite of all test cases given a string specifier.

The name may resolve either to a module, a test case class, a
test method within a test case class, or a callable object which
returns a TestCase or TestSuite instance.

The method optionally resolves the names relative to a given module.
Changed in 3.5
  • 3.5: If an ImportError or AttributeError occurs while traversing name then a synthetic test that raises that error when run will be returned. These errors are included in the errors accumulated by self.errors.
0 Examples
No examples for unittest/TestLoader.loadTestsFromName.
See Also
No see-alsos for unittest/TestLoader.loadTestsFromName
0 Notes
No notes for TestLoader.loadTestsFromName