test.support.import_fresh_module()
  • References/Python/Python/Development Tools

test.support.import_fresh_module(name, fresh=(), blocked=(), deprecated=False) This function imports and returns a fresh copy

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

class typing.Generic Abstract base class for generic types. A generic type is typically declared

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

unittest.mock.sentinel The sentinel object provides a convenient way of providing unique objects for your tests

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
doctest.DocTest.docstring
  • References/Python/Python/Development Tools

docstring The string that the test was extracted from, or ‘None’ if the string is unavailable, or if the test was not extracted

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

patch.dict(in_dict, values=(), clear=False, **kwargs) Patch a dictionary, or dictionary like object, and restore the dictionary

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
unittest.TestCase.run()
  • References/Python/Python/Development Tools

run(result=None) Run the test, collecting the result into the TestResult object passed as result. If result

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

class unittest.FunctionTestCase(testFunc, setUp=None, tearDown=None, description=None) This class implements the portion of

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

class typing.Iterable(Generic[T_co]) A generic version of the

2025-01-10 15:47:30