Skip to content

Commit

Permalink
Also use os.sep in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
CasperWA committed Aug 21, 2023
1 parent b25acc1 commit 2b39074
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/tasks/test_api_reference_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ def test_larger_package(tmp_path: "Path") -> None:
]:
py_path = f"{package_dir.name}." + str(
module_dir.relative_to(api_reference_folder)
).replace("/", ".")
).replace(os.sep, "/").replace("/", ".")
assert (module_dir / ".pages").read_text(
encoding="utf8"
) == f'title: "{module_dir.name}"\n', (
Expand Down Expand Up @@ -637,7 +637,7 @@ def test_larger_multi_packages(tmp_path: "Path") -> None:
for module_dir in [package_dir / _ for _ in new_submodules]:
py_path = f"{package_dir.name}." + str(
module_dir.relative_to(package_dir)
).replace("/", ".")
).replace(os.sep, "/").replace("/", ".")
assert (module_dir / ".pages").read_text(
encoding="utf8"
) == f'title: "{module_dir.name}"\n', (
Expand Down

0 comments on commit 2b39074

Please sign in to comment.