Get baseline 100% clean coverage (#1553)
This commit is contained in:
parent
da4fce2195
commit
89e9c43acf
1 changed files with 1032 additions and 1084 deletions
|
|
@ -89,13 +89,13 @@ async def test_desktop(monkeypatch: pytest.MonkeyPatch):
|
|||
content = result.contents[0]
|
||||
assert isinstance(content, TextResourceContents)
|
||||
assert isinstance(content.text, str)
|
||||
if sys.platform == "win32":
|
||||
if sys.platform == "win32": # pragma: no cover
|
||||
file_1 = "/fake/path/file1.txt".replace("/", "\\\\") # might be a bug
|
||||
file_2 = "/fake/path/file2.txt".replace("/", "\\\\") # might be a bug
|
||||
assert file_1 in content.text
|
||||
assert file_2 in content.text
|
||||
# might be a bug, but the test is passing
|
||||
else:
|
||||
else: # pragma: no cover
|
||||
assert "/fake/path/file1.txt" in content.text
|
||||
assert "/fake/path/file2.txt" in content.text
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue