Definition at line 124 of file pytest_plugin.py.
Public Member Functions | |
| __call__ (self, Sequence[str] args, *, Sequence[str]|None base_command=None, dict[str, str]|None env=None, int poll_retries=service_daemon.POLL_RETRIES, str|None ping_url=None, 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, Callable[..., subprocess.Popen]|None subprocess_spawner=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) | |
| Creates service spawner asynccontextmanager factory. | |
| testsuite.daemons.pytest_plugin.ServiceSpawnerFactory.__call__ | ( | self, | |
| Sequence[str] | args, | ||
| * | , | ||
| Sequence[str] | None | base_command = None, | ||
| dict[str, str] | None | env = None, | ||
| int | poll_retries = service_daemon.POLL_RETRIES, | ||
| str | None | ping_url = None, | ||
| 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, | ||
| Callable[..., subprocess.Popen] | None | subprocess_spawner = 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 ) |
Creates service spawner asynccontextmanager factory.
: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_spawner: callable with subprocess.Popen interface. :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. :returns: Return asynccontextmanager factory that might be used within register_daemon_scope fixture.
Definition at line 125 of file pytest_plugin.py.