Create daemon scope for daemon with command to start.
Definition at line 165 of file pytest_plugin.py.
Public Member Functions | |
| AsyncContextManager[_DaemonScope] | __call__ (self, *, Sequence[str] args, str|None ping_url=None, str|None name=None, Sequence|None base_command=None, dict[str, str]|None env=None, int poll_retries=service_daemon.POLL_RETRIES, float ping_request_timeout=service_daemon.PING_REQUEST_TIMEOUT, tuple[int] ping_response_codes=service_daemon.PING_RESPONSE_CODES, service_daemon.HealthCheckType|None health_check=None, dict[str, Any]|None subprocess_options=None, Callable[[subprocess.Popen], None]|None setup_service=None, int|None shutdown_signal=None, stdout_handler=None, stderr_handler=None, multiple=True) |
| :param args: command arguments :param base_command: Arguments to be prepended to args. | |
| AsyncContextManager[_DaemonScope] testsuite.daemons.pytest_plugin.CreateDaemonScope.__call__ | ( | self, | |
| * | , | ||
| Sequence[str] | args, | ||
| str | None | ping_url = None, | ||
| str | None | name = None, | ||
| Sequence | None | base_command = None, | ||
| dict[str, str] | None | env = None, | ||
| int | poll_retries = service_daemon.POLL_RETRIES, | ||
| float | ping_request_timeout = service_daemon.PING_REQUEST_TIMEOUT, | ||
| tuple[int] | ping_response_codes = service_daemon.PING_RESPONSE_CODES, | ||
| service_daemon.HealthCheckType | None | health_check = None, | ||
| dict[str, Any] | None | subprocess_options = None, | ||
| Callable[[subprocess.Popen], None] | None | setup_service = None, | ||
| int | None | shutdown_signal = None, | ||
| stdout_handler = None, | |||
| stderr_handler = None, | |||
| multiple = True ) |
:param args: command arguments :param base_command: Arguments to be prepended to args.
:param env: Environment variables dictionary. :param poll_retries: Number of tries for service health check :param ping_url: service health check url, service is considered up when 200 received. :param ping_request_timeout: Timeout for ping_url request :param ping_response_codes: HTTP resopnse codes tuple meaning that service is up and running. :param health_check: Async function to check service is running. :param subprocess_options: Custom subprocess options. :param setup_service: Function to be called right after service is started. :param shutdown_signal: Signal used to stop running services. :param multiple: do not fail when this scope is requested with others. :returns: Returns internal daemon scope instance to be used with ensure_daemon_started fixture.
Definition at line 168 of file pytest_plugin.py.