PyDocs

Nav

Development Tools

TestResult.addDuration

unittest

method of TestResult · Added in 3.12 (source)
  • TestResult.addDuration(test, elapsed)
Called when a test finished to run, regardless of its outcome.
*test* is the test case corresponding to the test method.
*elapsed* is the time represented in seconds, and it includes the
execution of cleanup functions.
0 Examples
No examples for unittest/TestResult.addDuration.
See Also
No see-alsos for unittest/TestResult.addDuration
0 Notes
No notes for TestResult.addDuration