Skip to content

Commit ffd4d63

Browse files
committed
fix: adjust utility test function to properly output relative paths not absolute
1 parent f1681e1 commit ffd4d63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66

77
def templates_matching(pattern: str) -> list[Path]:
88
"""Return a list of relative file paths matching the given pattern."""
9-
return list(COOKIECUTTER_FOLDER.glob(pattern))
9+
return [path.relative_to(COOKIECUTTER_FOLDER) for path in COOKIECUTTER_FOLDER.glob(pattern)]

0 commit comments

Comments
 (0)