💾 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

View Raw

More Information

⬅️ Previous capture (2022-01-08)

-=-=-=-=-=-=-

Back to module index

Go to module by name

unittest

unittest.suite

TestSuite

Classes

BaseTestSuite

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)

TestSuite

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)

Modules

case

sys

util