unittest.mock.Mock.method_calls
  • References/Python/Python/Development Tools

method_calls As well as tracking calls to themselves, mocks also track calls to methods and attributes, and their methods

2025-01-10 15:47:30
typing.Generator
  • References/Python/Python/Development Tools

class typing.Generator(Iterator[T_co], Generic[T_co, T_contra, V_co]) A generator can be annotated by the generic type

2025-01-10 15:47:30
unittest.TestResult.stopTestRun()
  • References/Python/Python/Development Tools

stopTestRun() Called once after all tests are executed.

2025-01-10 15:47:30
typing.SupportsAbs
  • References/Python/Python/Development Tools

class typing.SupportsAbs An ABC with one abstract method __abs__ that is covariant in its return type.

2025-01-10 15:47:30
unittest.mock.mock_open()
  • References/Python/Python/Development Tools

unittest.mock.mock_open(mock=None, read_data=None) A helper function to create a mock to replace the use of

2025-01-10 15:47:30
doctest.DocTest.examples
  • References/Python/Python/Development Tools

examples A list of Example objects encoding the individual interactive Python examples that should be run by this

2025-01-10 15:47:30
unittest.mock.patch.multiple()
  • References/Python/Python/Development Tools

patch.multiple(target, spec=None, create=False, spec_set=None, autospec=None, new_callable=None, **kwargs) Perform multiple

2025-01-10 15:47:30
test.support.verbose
  • References/Python/Python/Development Tools

test.support.verbose True when verbose output is enabled. Should be checked when more detailed information is desired

2025-01-10 15:47:30
unittest.TestCase.addCleanup()
  • References/Python/Python/Development Tools

addCleanup(function, *args, **kwargs) Add a function to be called after tearDown() to cleanup resources used during

2025-01-10 15:47:30
doctest.DocTestRunner.summarize()
  • References/Python/Python/Development Tools

summarize(verbose=None) Print a summary of all the test cases that have been run by this DocTestRunner, and return a

2025-01-10 15:47:30