Skip to content

Commit

Permalink
cleaner
Browse files Browse the repository at this point in the history
  • Loading branch information
stavros-k committed Dec 20, 2024
1 parent 995d765 commit a248885
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions library/2.1.5/tests/test_validations.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,9 @@ def mock_resolve(self):
if str(self).endswith("symlink_restricted"):
return Path("/home") # Return the actual restricted target

# For other paths, strip /private/ if present
path_str = str(self)
if path_str.startswith("/private/"):
return Path(path_str[8:])

return Path(str(self))
# For other paths, strip /private/ if present
return Path(str(path_str).removeprefix("/private/"))


@pytest.mark.parametrize(
Expand Down
2 changes: 1 addition & 1 deletion library/hashes.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
0.0.1: f074617a82a86d2a6cc78a4c8a4296fc9d168e456f12713e50c696557b302133
2.1.5: 4d78f0c193bc707071ea3ecfb9eca184ce76a993dcfc052fe9a5392f31cab098
2.1.5: bf319b594a5a59cafe47023cf254a1871702fb06bec89c2be527656a4d4df679

0 comments on commit a248885

Please sign in to comment.