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  UnregisteredTestpointError
class  TestpointControl

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()

testpoint_checker_factory ( testpoint_control)

Definition at line 37 of file testpoint.py.

◆ testpoint_control()

testpoint_control ( )

Definition at line 32 of file testpoint.py.

Variable Documentation

◆ DISABLED_ERROR

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

Definition at line 24 of file testpoint.py.

◆ USERVER_CONFIG_HOOKS

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

Definition at line 8 of file testpoint.py.