Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
felixdivo committed May 12, 2024
1 parent 2651af8 commit cee5bb1
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 11 deletions.
7 changes: 0 additions & 7 deletions ros2_easy_test/tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,3 @@
from pathlib import Path

LAUNCH_FILES = Path(__file__).parent / "example_launch_files"


def is_ros_version(what: str) -> bool:
try:
return environ["ROS_DISTRO"].lower() == what.lower()
except KeyError:
return False
2 changes: 1 addition & 1 deletion ros2_easy_test/tests/test_env_coverage.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from ros2_easy_test import ROS2TestEnvironment, with_launch_file, with_single_node

# Helpers
from . import LAUNCH_FILES, is_ros_version
from . import LAUNCH_FILES

# Module under test and interfaces
from .example_nodes.well_behaved import EchoNode, Talker
Expand Down
3 changes: 0 additions & 3 deletions ros2_easy_test/tests/test_failing_nodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@
# What we are testing
from ros2_easy_test import ROS2TestEnvironment, with_launch_file, with_single_node

# Helpers
from . import is_ros_version

# Module under test and interfaces
from .example_nodes.failing import (
NodeRaiseInInit,
Expand Down

0 comments on commit cee5bb1

Please sign in to comment.