Skip to content

Commit

Permalink
Add some comments to new test.
Browse files Browse the repository at this point in the history
  • Loading branch information
adamheins committed Sep 30, 2024
1 parent dce5cc0 commit e4d9a9e
Show file tree
Hide file tree
Showing 2 changed files with 278 additions and 0 deletions.
273 changes: 273 additions & 0 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions tests/test_xacrodoc.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ def test_temp_urdf_file():
def test_resolve_packages():
from xacrodoc.xacrodoc import _resolve_package_protocol

# spoof package paths so these all point to the same package (this one)
# want to test hyphens and underscores in the package names
packages.update_package_cache(
{
"xacrodoc": "..",
Expand All @@ -81,11 +83,14 @@ def test_resolve_packages():
}
)

# some text with package protocols
text = """
package://xacrodoc/tests/files/threelink.urdf.xacro
package://example-robot-data/tests/files/threelink.urdf.xacro
package://robot_description/tests/files/threelink.urdf.xacro
"""

# all package protocols should resolve to the same absolute path
absolute_path = Path("files/threelink.urdf.xacro").absolute().as_posix()
expected = f"""
{absolute_path}
Expand Down

0 comments on commit e4d9a9e

Please sign in to comment.