unittest.mock.patch.object()
  • References/Python/Python/Development Tools

patch.object(target, attribute, new=DEFAULT, spec=None, create=False, spec_set=None, autospec=None, new_callable=None, **kwargs) patch

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

assertSetEqual(first, second, msg=None) Tests that two sets are equal. If not, an error message is constructed that lists the

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

class unittest.mock.MagicMock(*args, **kw) MagicMock is a subclass of Mock with default implementations

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

mock_add_spec(spec, spec_set=False) Add a spec to a mock. spec can either be an object or a list of strings. Only attributes

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

class typing.MappingView(Sized, Iterable[T_co]) A generic version of

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

assertIs(first, second, msg=None) assertIsNot(first, second, msg=None) Test that first and second

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
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.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