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
test.support.import_module()
  • References/Python/Python/Development Tools

test.support.import_module(name, deprecated=False) This function imports and returns the named module. Unlike a normal import

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

class doctest.DocTestParser A processing class used to extract interactive examples from a string, and use them to create a

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.MutableMapping
  • References/Python/Python/Development Tools

class typing.MutableMapping(Mapping[KT, VT]) A generic version of

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

typing.get_type_hints(obj) Return type hints for a function or method object. This is often

2025-01-10 15:47:30
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
unittest.TestCase.assertSequenceEqual()
  • References/Python/Python/Development Tools

assertSequenceEqual(first, second, msg=None, seq_type=None) Tests that two sequences are equal. If a seq_type is supplied

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