userver: pytest_userver.plugins.testpoint Namespace Reference
Loading...
Searching...
No Matches
pytest_userver.plugins.testpoint Namespace Reference

Detailed Description

Testpoints support for the server.

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
 

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.