Skip to content

Commit d432257

Browse files
committed
Update test assertions to use Path for file paths
Signed-off-by: DanielAvdar <[email protected]>
1 parent 5ec2a11 commit d432257

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/test_examples.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,9 @@ async def test_desktop(monkeypatch):
6969
content = result.contents[0]
7070
assert isinstance(content, TextResourceContents)
7171
assert isinstance(content.text, str)
72-
assert "/fake/path/file1.txt" in content.text
73-
assert "/fake/path/file2.txt" in content.text
72+
73+
assert Path("/fake/path/file1.txt").as_posix() in content.text
74+
assert Path("/fake/path/file2.txt").as_posix() in content.text
7475

7576

7677
@pytest.mark.parametrize("example", find_examples("README.md"), ids=str)

0 commit comments

Comments
 (0)