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

Detailed Description

Start the service in testsuite.

Functions

None pytest_addoption (parser)
 
 service_env ()
 Override this to pass extra environment variables to the service.
 
Optional[str] service_http_ping_url (service_config, service_baseurl)
 Returns the service HTTP ping URL that is used by the testsuite to detect that the service is ready to work.
 
net.HealthChecks service_non_http_health_checks (service_config)
 Returns a health checks info.
 
 service_daemon_scope (create_daemon_scope, daemon_scoped_mark, service_env, service_http_ping_url, service_config_path_temp, service_binary, service_non_http_health_checks)
 Prepares the start of the service daemon.
 
None extra_client_deps ()
 Service client dependencies hook.
 
None auto_client_deps (request)
 Ensures that the following fixtures, if available, are run before service start:
 
 builtin_client_deps (testpoint, cleanup_userver_dumps, userver_log_capture, dynamic_config, mock_configs_service)
 Service client dependencies hook, like extra_client_deps.
 
DaemonInstance service_daemon_instance (ensure_daemon_started, service_daemon_scope, builtin_client_deps, auto_client_deps, extra_client_deps)
 Calls ensure_daemon_started on service_daemon_scope to actually start the service.
 
Optional[Dict[str, Any]] daemon_scoped_mark (request)
 Depend on this fixture directly or transitively to make your fixture a per-daemon fixture.
 

Variables

 logger = logging.getLogger(__name__)
 

Function Documentation

◆ pytest_addoption()

None pytest_userver.plugins.service.pytest_addoption ( parser)

Definition at line 26 of file service.py.

Variable Documentation

◆ logger

pytest_userver.plugins.service.logger = logging.getLogger(__name__)

Definition at line 23 of file service.py.