unittest.TestResult.addUnexpectedSuccess()
  • References/Python/Python/Development Tools

addUnexpectedSuccess(test) Called when the test case test was marked with the expectedFailure() decorator

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

run(test) This method is the main public interface to the TextTestRunner. This method takes a TestSuite

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

failfast If set to true stop() will be called on the first failure or error, halting the test run.

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

doctest.debug_src(src, pm=False, globs=None) Debug the doctests in a string. This is like function

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

loadTestsFromModule(module, pattern=None) Return a suite of all tests cases contained in the given module. This method searches

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

assert_called_once_with(*args, **kwargs) Assert that the mock was called exactly once and with the specified arguments.

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

lineno The line number within the string containing this example where the example begins. This line number is zero-based with

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

countTestCases() Return the number of tests represented by this test object. For TestCase instances, this will

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

@unittest.skip(reason) Unconditionally skip the decorated test. reason should describe why the test is being skipped

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

tearDownClass() A class method called after tests in an individual class have run. tearDownClass is called with

2025-01-10 15:47:30