Skip to content

Commit

Permalink
Small test code simplification
Browse files Browse the repository at this point in the history
  • Loading branch information
felixdivo committed May 12, 2024
1 parent 3d075d1 commit 60e1d09
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 14 deletions.
20 changes: 7 additions & 13 deletions ros2_easy_test/tests/example_launch_files/talker_with_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,22 +24,16 @@ def _launch_setup(context: LaunchContext, start_value: LaunchConfiguration):


def generate_launch_description() -> LaunchDescription:
declared_arguments = []

declared_arguments.append(
DeclareLaunchArgument(
"start_value",
default_value="0",
description="The start value.",
)
)

return LaunchDescription(
declared_arguments
+ [
[
DeclareLaunchArgument(
"start_value",
default_value="0",
description="The start value.",
),
OpaqueFunction(
function=_launch_setup,
args=[LaunchConfiguration("start_value")],
)
),
]
)
2 changes: 1 addition & 1 deletion ros2_easy_test/tests/example_nodes/failing.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@


class OnPurposeError(RuntimeError):
"""Raised on purpose to demonstrate the behavior of the library."""
"""Raised on purpose to demonstrate the behavior and correctness of the library."""


class NodeRaiseInInit(Node):
Expand Down

0 comments on commit 60e1d09

Please sign in to comment.