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

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

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__'
 
 Metric = metric_module.Metric
 

Detailed Description

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

Function Documentation

◆ _task_check_response()

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

Definition at line 1192 of file client.py.

Variable Documentation

◆ _UNKNOWN_STATE

str pytest_userver.client._UNKNOWN_STATE = '__UNKNOWN__'
protected

Definition at line 33 of file client.py.

◆ Metric

pytest_userver.client.Metric = metric_module.Metric

Definition at line 83 of file client.py.