Ensure consistent path in snapshot tests

This commit is contained in:
Darren Burns
2022-10-25 12:08:08 +01:00
parent 617f0acb99
commit 1b19450779
2 changed files with 160 additions and 2 deletions

View File

@@ -1,4 +1,4 @@
from pathlib import Path
from pathlib import Path, PurePosixPath
import pytest
@@ -94,7 +94,7 @@ def test_header_render(snap_compare):
# If any of these change, something has likely broken, so snapshot each of them.
PATHS = [
str(path) for path in Path("docs/examples/styles").iterdir() if path.suffix == ".py"
str(PurePosixPath(path)) for path in Path("docs/examples/styles").iterdir() if path.suffix == ".py"
]