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.
 
typing.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 (pytestconfig, create_daemon_scope, service_env, service_http_ping_url, service_config_path_temp, service_config, service_binary, service_non_http_health_checks, testsuite_logger)
 Configures the health checking to use service_http_ping_url fixture value if it is not None; otherwise uses the service_non_http_health_checks info.
 

Variables

 logger_testsuite = logging.getLogger(__name__)
 

Function Documentation

◆ pytest_addoption()

None pytest_userver.plugins.service.pytest_addoption ( parser)

Definition at line 21 of file service.py.

Variable Documentation

◆ logger_testsuite

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

Definition at line 18 of file service.py.