userver: pytest_userver.plugins.testpoint Namespace Reference
⚠️ This is the documentation for an old userver version. Click here to switch to the latest version.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
pytest_userver.plugins.testpoint Namespace Reference

Testpoints support for the server. More...

Classes

class  BaseError
 
class  TestpointControl
 
class  UnregisteredTestpointError
 

Functions

 testpoint_control ()
 
 testpoint_checker_factory (testpoint_control)
 
 userver_config_testpoint (mockserver_info)
 Returns a function that adjusts the static configuration file for the testsuite.
 

Variables

list USERVER_CONFIG_HOOKS = ['userver_config_testpoint']
 
str DISABLED_ERROR
 

Detailed Description

Testpoints support for the server.

Function Documentation

◆ testpoint_checker_factory()

pytest_userver.plugins.testpoint.testpoint_checker_factory (   testpoint_control)

Definition at line 39 of file testpoint.py.

◆ testpoint_control()

pytest_userver.plugins.testpoint.testpoint_control ( )

Definition at line 34 of file testpoint.py.

Variable Documentation

◆ DISABLED_ERROR

str pytest_userver.plugins.testpoint.DISABLED_ERROR
Initial value:
1= """Access to {opname!r} on unregistered testpoint {name}
2
3Use `await service_client.update_server_state()` to explicitly sync testpoints
4state.
5"""

Definition at line 26 of file testpoint.py.

◆ USERVER_CONFIG_HOOKS

list pytest_userver.plugins.testpoint.USERVER_CONFIG_HOOKS = ['userver_config_testpoint']

Definition at line 10 of file testpoint.py.