userver: pytest_userver.plugins.service_client Namespace Reference
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
pytest_userver.plugins.service_client Namespace Reference

Detailed Description

Service main and monitor clients.

Functions

client.Client service_client (service_daemon_instance, service_baseurl, service_client_options, userver_service_client_options, userver_client_cleanup, client.TestsuiteClientConfig _testsuite_client_config)
 Main fixture that provides access to userver based service.
 
typing.Callable[[client.Client], typing.AsyncGenerator] userver_client_cleanup (request, service_logs_update_position, servicelogs_register_flusher, _dynamic_config_defaults_storage, _check_config_marks, dynamic_config)
 Contains the pre-test and post-test setup that depends on service_client.
 
 websocket_client (service_client, service_port)
 Fixture that provides access to userver based websocket service.
 
client.ClientMonitor monitor_client (service_client, userver_monitor_client_options, monitor_baseurl)
 Main fixture that provides access to userver monitor listener.
 
str service_baseurl (service_port)
 Returns the main listener URL of the service.
 
str monitor_baseurl (monitor_port)
 Returns the main monitor URL of the service.
 
client.PeriodicTasksState service_periodic_tasks_state ()
 
client.TestsuiteClientConfig _testsuite_client_config (service_config)
 

Function Documentation

◆ _testsuite_client_config()

client.TestsuiteClientConfig pytest_userver.plugins.service_client._testsuite_client_config ( service_config)
protected

Definition at line 251 of file service_client.py.

◆ service_periodic_tasks_state()

client.PeriodicTasksState pytest_userver.plugins.service_client.service_periodic_tasks_state ( )

Definition at line 246 of file service_client.py.