doctest.register_optionflag()
  • References/Python/Python/Development Tools

doctest.register_optionflag(name) Create a new option flag with a given name, and return the new flag’s integer value.

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

get_doctest(string, globs, name, filename, lineno) Extract all doctest examples from the given string, and collect them into

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

filename The name of the file that this DocTest was extracted from; or None if the filename is unknown

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

tb_locals If set to true then local variables will be shown in tracebacks.

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

class unittest.mock.NonCallableMagicMock(*args, **kw) A non-callable version of MagicMock. The

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

class typing.MutableSet(AbstractSet[T]) A generic version of

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

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

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.mock.Mock.assert_not_called()
  • References/Python/Python/Development Tools

assert_not_called() Assert the mock was never called. >>>

2025-01-10 15:47:30
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