Skip to content

Commit

Permalink
sq tests
Browse files Browse the repository at this point in the history
  • Loading branch information
diegoferigo committed Feb 28, 2024
1 parent a0bcd11 commit d6ba722
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/test_resolve_robotics_uri_py.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,10 @@ def test_scoped_uri(scheme: str, env_var_name="GZ_SIM_RESOURCE_PATH"):

# Existing relative URI path in search dirs
with export_env_var(name=env_var_name, value=temp_dir):
uri = f"{scheme}top_level.txt"
resolve_robotics_uri_py.resolve_robotics_uri(uri)
relative_path = "top_level.txt"
uri = f"{scheme}{relative_path}"
path_of_file = resolve_robotics_uri_py.resolve_robotics_uri(uri)
assert path_of_file == (pathlib.Path(temp_dir) / relative_path).resolve()

# Existing relative URI path in search dirs with multiple paths
with export_env_var(name=env_var_name, value=f"/another/dir:{temp_dir}"):
Expand Down

0 comments on commit d6ba722

Please sign in to comment.