userver: pytest_userver.client Namespace Reference
Loading...
Searching...
No Matches
pytest_userver.client Namespace Reference

Detailed Description

Python module that provides clients for functional tests with testsuite; see Functional service tests (testsuite) for an introduction.

Classes

class  _State
 Reflects the (supposed) current service state. More...
 
class  _StateManager
 Used for computing the requests that we need to automatically align the service state with the test fixtures state. More...
 
class  BaseError
 Base class for exceptions of this module. More...
 
class  Client
 Asyncio userver client, typically retrieved from plugins.service_client.service_client fixture. More...
 
class  ClientMonitor
 Asyncio userver client for monitor listeners, typically retrieved from plugins.service_client.monitor_client fixture. More...
 
class  ClientWrapper
 Base asyncio userver client that implements HTTP requests to service. More...
 
class  ConfigurationError
 
class  MetricsDiffer
 A helper class for computing metric differences. More...
 
class  PeriodicTaskFailed
 
class  PeriodicTasksState
 
class  TestsuiteActionFailed
 
class  TestsuiteClientConfig
 
class  TestsuiteTaskConflict
 
class  TestsuiteTaskError
 
class  TestsuiteTaskFailed
 
class  TestsuiteTaskNotFound
 

Functions

dict _task_check_response (str name, response)
 

Variables

str _UNKNOWN_STATE = '__UNKNOWN__'
 
tuple CACHE_INVALIDATION_MESSAGE
 
 Metric = metric_module.Metric
 

Function Documentation

◆ _task_check_response()

dict pytest_userver.client._task_check_response ( str name,
response )
protected

Definition at line 1365 of file client.py.

Variable Documentation

◆ _UNKNOWN_STATE

str pytest_userver.client._UNKNOWN_STATE = '__UNKNOWN__'
protected

Definition at line 34 of file client.py.

◆ CACHE_INVALIDATION_MESSAGE

tuple pytest_userver.client.CACHE_INVALIDATION_MESSAGE
Initial value:
1= (
2 'Direct cache invalidation is deprecated.\n'
3 '\n'
4 ' - Use client.update_server_state() to synchronize service state\n'
5 ' - Explicitly pass cache names to invalidate, e.g.: '
6 'invalidate_caches(cache_names=[...]).'
7)

Definition at line 36 of file client.py.

◆ Metric

pytest_userver.client.Metric = metric_module.Metric

Definition at line 92 of file client.py.