File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1616
1717from __future__ import annotations
1818
19+ import importlib .util
1920import os
2021from pathlib import Path
2122
2829 not ament_prefix ._has_ament , reason = "ament_index_python not installed"
2930)
3031
32+ _needs_xacro = pytest .mark .skipif (
33+ not importlib .util .find_spec ("xacro" ), reason = "xacro not installed"
34+ )
35+
3136
3237@pytest .fixture (autouse = True )
3338def _isolate_ament_state (monkeypatch : pytest .MonkeyPatch , tmp_path : Path ) -> None :
@@ -129,6 +134,7 @@ def test_ament_index_resolves(tmp_path: Path) -> None:
129134 assert Path (resolved ).resolve () == pkg_dir .resolve ()
130135
131136
137+ @_needs_xacro
132138def test_process_xacro_with_simple_file (tmp_path : Path ) -> None :
133139 """Test process_xacro works with a minimal xacro file (no $(find))."""
134140 xacro_file = tmp_path / "test.urdf.xacro"
You can’t perform that action at this time.
0 commit comments