unittest.TestResult.buffer
  • References/Python/Python/Development Tools

buffer If set to true, sys.stdout and sys.stderr will be buffered in between startTest()

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

test.support.forget(module_name) Remove the module named module_name from sys.modules and delete any byte-compiled

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

class typing.Union Union type; Union[X, Y] means either X or Y. To define a union

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

@typing.no_type_check(arg) Decorator to indicate that annotations are not type hints. The argument

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

class unittest.mock.Mock(spec=None, side_effect=None, return_value=DEFAULT, wraps=None, name=None, spec_set=None, unsafe=False, **kwargs)

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

test.support.run_doctest(module, verbosity=None) Run

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

addError(test, err) Called when the test case test raises an unexpected exception. err is a tuple of the form

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

patch.stopall() Stop all active patches. Only stops patches started with start.

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

_get_child_mock(**kw) Create the child mocks for attributes and return value. By default child mocks will be the same type as

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

@typing.no_type_check_decorator(decorator) Decorator to give another decorator the no_type_check() effect.

2025-01-10 15:47:30