Skip to content

Commit

Permalink
Merge pull request #52 from mfschubert/windows
Browse files Browse the repository at this point in the history
fix tests for windows
  • Loading branch information
polyanskiy authored Dec 3, 2024
2 parents a26cbb4 + 7c8ab55 commit d196101
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/test_parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ def custom_name_func(testcase_func, param_num, param):
# Generate the custom test name from the test arguments.
del param_num
path = str(param.args[0])
path = path.replace("\\", "/") # On windows, directories are separated by `\`.
assert "/database/" in path
path = path[path.index("/database/") :]
return f"{testcase_func.__name__}{parameterized.to_safe_name(path)}"
Expand Down

0 comments on commit d196101

Please sign in to comment.