module documentation
Infrastructure for test running and suites.
Class | _ |
Adapter for pyunit-style TestCase subclasses that have undesirable id() methods. That is unittest.FunctionTestCase and unittest.DocTestCase. |
Class | _ |
Forces garbage collection to be run before and after the test. Any errors logged during the post-test collection are added to the test result as errors. |
Class | _ |
Adapt from pyunit.TestCase to ITestCase. |
Function | _clear |
Clear all tests from suite. |
Function | _iterate |
Iterate through all of the test cases in testSuiteOrCase. |
Variable | _doc |
Undocumented |
Clear all tests from suite.
This messes with the internals of suite. In particular, it assumes that the suite keeps all of its tests in a list in an instance variable called _tests.
def _iterateTests(testSuiteOrCase:
Union[ pyunit.TestCase, pyunit.TestSuite]
) -> Iterator[ itrial.ITestCase]
:
(source)
¶
Iterate through all of the test cases in testSuiteOrCase.