Skip to content

Commit

Permalink
Prevent pytest from performing any assertion rewriting outside the la…
Browse files Browse the repository at this point in the history
…unch_testing plugin.

Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
  • Loading branch information
hidmic committed Aug 21, 2019
1 parent d15a47c commit b4b56a2
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 0 deletions.
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
"""


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

0 comments on commit b4b56a2

Please sign in to comment.