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

Detailed Description

Start the service in testsuite.

Classes

class  ColorLogger
 

Functions

None pytest_addoption (parser)
 
typing.Optional[logger.Logger] pytest_override_testsuite_logger (config, logger.LineLogger line_logger, bool colors_enabled)
 
 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, _userver_log_handler)
 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.
 
 _userver_log_handler (pytestconfig, testsuite_logger, _uservice_logfile)
 
 _uservice_logfile (pytestconfig)
 

Variables

 logger_testsuite = logging.getLogger(__name__)
 

Function Documentation

◆ _userver_log_handler()

pytest_userver.plugins.service._userver_log_handler ( pytestconfig,
testsuite_logger,
_uservice_logfile )
protected

Definition at line 202 of file service.py.

◆ _uservice_logfile()

pytest_userver.plugins.service._uservice_logfile ( pytestconfig)
protected

Definition at line 227 of file service.py.

◆ pytest_addoption()

None pytest_userver.plugins.service.pytest_addoption ( parser)

Definition at line 45 of file service.py.

◆ pytest_override_testsuite_logger()

typing.Optional[logger.Logger] pytest_userver.plugins.service.pytest_override_testsuite_logger ( config,
logger.LineLogger line_logger,
bool colors_enabled )

Definition at line 72 of file service.py.

Variable Documentation

◆ logger_testsuite

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

Definition at line 22 of file service.py.