launch_testing.proc_info_handler module

A module providing process info capturing classes.

To prevent pytest from rewriting this module assertions, please PYTEST_DONT_REWRITE. See https://docs.pytest.org/en/latest/assert.html#disabling-assert-rewriting for further reference.

class launch_testing.proc_info_handler.ActiveProcInfoHandler

Bases: object

Allows tests to wait on process termination before proceeding.

append(process_info)
assertWaitForShutdown(process, cmd_args=None, *, timeout=10)
assertWaitForStartup(process, cmd_args=None, *, timeout=10)
property proc_event
process_names()

Get the name of all recorded processes.

Returns [string]:

processes()

Get the ExecuteProcess launch actions of all recorded processes.

Returns [launch.actions.ExecuteProcess]:

class launch_testing.proc_info_handler.ProcInfoHandler

Bases: object

Captures exit codes from processes when they terminate.

append(process_info)
process_names()

Get the name of all recorded processes.

processes()

Get the ExecuteProcess launch actions of all recorded processes.