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

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

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

class typing.Tuple Tuple type; Tuple[X, Y] is the type of a tuple of two items with the first item of type X and

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

loadTestsFromName(name, module=None) Return a suite of all tests cases given a string specifier. The

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

exc_msg The exception message generated by the example, if the example is expected to generate an exception; or None

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

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

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

class doctest.OutputChecker A class used to check the whether the actual output from a doctest example matches the expected

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

assertDictEqual(first, second, msg=None) Test that two dictionaries are equal. If not, an error message is constructed that

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

assert_called_with(*args, **kwargs) This method is a convenient way of asserting that calls are made in a particular way:

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

setUpClass() A class method called before tests in an individual class run. setUpClass is called with the class

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

unittest.defaultTestLoader Instance of the TestLoader class intended to be shared. If no customization of the

2025-01-10 15:47:30