Participer au site avec un Tip
Rechercher
 

Améliorations / Corrections

Vous avez des améliorations (ou des corrections) à proposer pour ce document : je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.

Emplacement :

Description des améliorations :

Python 3.11.3

Contenu du module « unittest »

Liste des classes du module unittest

Nom de la classe Description
BaseTestSuite A simple test suite that doesn't provide class or module shared fixtures. [extrait de BaseTestSuite.__doc__]
FunctionTestCase A test case that wraps a test function. [extrait de FunctionTestCase.__doc__]
IsolatedAsyncioTestCase
TestCase A class whose instances are single test cases. [extrait de TestCase.__doc__]
TestLoader
TestProgram A command-line program that runs a set of tests; this is primarily [extrait de TestProgram.__doc__]
TestResult Holder for test result information. [extrait de TestResult.__doc__]
TestSuite A test suite is a composite test consisting of a number of TestCases. [extrait de TestSuite.__doc__]
TextTestResult A test result class that can print formatted text results to a stream. [extrait de TextTestResult.__doc__]
TextTestRunner A test runner class that displays results in textual form. [extrait de TextTestRunner.__doc__]

Liste des exceptions du module unittest

Nom de la classe d'exception Description
SkipTest

Liste des fonctions du module unittest

Signature de la fonction Description
addModuleCleanup(function, /, *args, **kwargs) Same as addCleanup, except the cleanup items are called even if [extrait de addModuleCleanup.__doc__]
doModuleCleanups() Execute all module cleanup functions. Normally called for you after [extrait de doModuleCleanups.__doc__]
enterModuleContext(cm) Same as enterContext, but module-wide. [extrait de enterModuleContext.__doc__]
expectedFailure(test_item)
findTestCases(module, prefix='test', sortUsing=<function three_way_cmp at 0x7f720d58e5c0>, suiteClass=<class 'unittest.suite.TestSuite'>)
getTestCaseNames(testCaseClass, prefix, sortUsing=<function three_way_cmp at 0x7f720d58e5c0>, testNamePatterns=None)
installHandler()
load_tests(loader, tests, pattern)
makeSuite(testCaseClass, prefix='test', sortUsing=<function three_way_cmp at 0x7f720d58e5c0>, suiteClass=<class 'unittest.suite.TestSuite'>)
registerResult(result)
removeHandler(method=None)
removeResult(result)
skip(reason)
skipIf(condition, reason)
skipUnless(condition, reason)

Liste des variables globales du module unittest

Nom de la variable globale Valeur
defaultTestLoader <unittest.loader.TestLoader object at 0x7f720d5c65d0>

Liste des alias du module unittest

Nom de l'alias Définition ciblée
main TestProgram