💾 Archived View for tris.fyi › pydoc › unittest.suite captured on 2023-04-26 at 13:36:50. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2022-01-08)
-=-=-=-=-=-=-
TestSuite
A simple test suite that doesn't provide class or module shared fixtures.
addTest(self, test)
addTests(self, tests)
countTestCases(self)
debug(self) Run the tests without collecting errors in a TestResult
run(self, result)
A test suite is a composite test consisting of a number of TestCases. For use, create an instance of TestSuite, then add test case instances. When all tests have been added, the suite can be passed to a test runner, such as TextTestRunner. It will run the individual test cases in the order in which they were added, aggregating the results. When subclassing, do not forget to call the base class constructor.
addTest(self, test)
addTests(self, tests)
countTestCases(self)
debug(self) Run the tests without collecting errors in a TestResult
run(self, result, debug=False)