unittest.mock.NonCallableMock
  • References/Python/Python/Development Tools

class unittest.mock.NonCallableMock(spec=None, wraps=None, name=None, spec_set=None, **kwargs) A non-callable version of Mock

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

stop() This method can be called to signal that the set of tests being run should be aborted by setting the shouldStop

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

exception unittest.SkipTest(reason) This exception is raised to skip a test. Usually you can

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

stopTestRun() Called once after all tests are executed.

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

@unittest.skipUnless(condition, reason) Skip the decorated test unless condition is true.

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

doctest.testfile(filename, module_relative=True, name=None, package=None, globs=None, verbose=None, report=True, optionflags=0, extraglobs=None, raise_on_error=False

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

@unittest.expectedFailure Mark the test as an expected failure. If the test fails when run, the test is not counted as a failure

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

assertIsNotNone(expr, msg=None) Test that expr is (or is not) None.

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

class typing.KeysView(MappingView[KT_co], AbstractSet[KT_co]) A generic version of

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

skipped A list containing 2-tuples of TestCase instances and strings holding the reason for skipping the test.

2025-01-10 15:47:30