Python module pytest_userver provides testsuite support for userver services.
Namespaces | |
| namespace | chaos | 
| Python module that provides testsuite support for chaos tests; see Chaos Testing for an introduction.  | |
| namespace | client | 
| Python module that provides clients for functional tests with testsuite; see Functional service tests (testsuite) for an introduction.  | |
| namespace | metrics | 
| Python module that provides helpers for functional testing of metrics with testsuite; see Functional service tests (testsuite) for an introduction.  | |
Functions | |
| addLoggingLevel (levelName, levelNum, methodName=None) | |
Comprehensively adds a new logging level to the logging module and the currently configured logging class.   | |
| pytest_userver.addLoggingLevel | ( | levelName, | |
| levelNum, | |||
| methodName = None ) | 
Comprehensively adds a new logging level to the logging module and the currently configured logging class. 
levelName becomes an attribute of the logging module with the value levelNum. methodName becomes a convenience method for both logging itself and the class returned by logging.getLoggerClass() (usually just logging.Logger). If methodName is not specified, levelName.lower() is used.
To avoid accidental clobberings of existing attributes, this method will raise an AttributeError if the level name is already an attribute of the logging module or if the method name is already present
addLoggingLevel('TRACE', logging.DEBUG - 5) logging.getLogger(name).setLevel("TRACE") logging.getLogger(name).trace('that worked') logging.trace('so did this') logging.TRACE
5
Definition at line 11 of file __init__.py.