Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable launch test discovery in pytest #312

Merged
merged 13 commits into from
Aug 23, 2019
7 changes: 7 additions & 0 deletions launch_testing/launch_testing/asserts/assert_exit_codes.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@
# See the License for the specific language governing permissions and
# limitations under the License.

"""
A module providing exit code assertions.

PYTEST_DONT_REWRITE
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe, add a comment/link explaining why this is needed (e.g.: https://docs.pytest.org/en/latest/assert.html#assertion-introspection-details).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, done in c7e6f80.

"""


import os

from ..util import resolveProcesses
Expand Down
7 changes: 7 additions & 0 deletions launch_testing/launch_testing/asserts/assert_output.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@
# See the License for the specific language governing permissions and
# limitations under the License.

"""
A module providing process output assertions.

PYTEST_DONT_REWRITE
"""


import os

from osrf_pycommon.terminal_color import remove_ansi_escape_senquences
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@
# See the License for the specific language governing permissions and
# limitations under the License.

"""
A module providing process output sequence assertions.

PYTEST_DONT_REWRITE
"""


from contextlib import contextmanager

from ..util import resolveProcesses
Expand Down
7 changes: 7 additions & 0 deletions launch_testing/launch_testing/io_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@
# See the License for the specific language governing permissions and
# limitations under the License.

"""
A module providing process IO capturing classes.

PYTEST_DONT_REWRITE
"""


import threading

from .asserts.assert_output import assertInStdout
Expand Down
7 changes: 7 additions & 0 deletions launch_testing/launch_testing/proc_info_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@
# See the License for the specific language governing permissions and
# limitations under the License.

"""
A module providing process info capturing classes.

PYTEST_DONT_REWRITE
"""


import threading
from launch.actions import ExecuteProcess # noqa
from launch.events.process import ProcessExited
Expand Down