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

Start the service in testsuite. More...

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_yaml, 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_yaml)
 Returns a health checks info.
 
 service_daemon (pytestconfig, create_daemon_scope, service_env, service_http_ping_url, service_config_path_temp, service_config_yaml, 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__)
 

Detailed Description

Start the service in testsuite.

Function Documentation

◆ _userver_log_handler()

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

Definition at line 194 of file service.py.

◆ _uservice_logfile()

pytest_userver.plugins.service._uservice_logfile (   pytestconfig)
protected

Definition at line 219 of file service.py.

◆ pytest_addoption()

None pytest_userver.plugins.service.pytest_addoption (   parser)

Definition at line 43 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 70 of file service.py.

Variable Documentation

◆ logger_testsuite

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

Definition at line 20 of file service.py.