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

startTestRun() Called once before any tests are executed.

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

class typing.ByteString(Sequence[int]) A generic version of

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.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.TestCase.doCleanups()
  • References/Python/Python/Development Tools

doCleanups() This method is called unconditionally after tearDown(), or after setUp() if setUp()

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

class unittest.TestResult This class is used to compile information about which tests have succeeded and which have failed.

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

fail(msg=None) Signals a test failure unconditionally, with msg or None for the error message.

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

unexpectedSuccesses A list containing TestCase instances that were marked as expected failures, but succeeded.

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

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

2025-01-10 15:47:30