Get baseline 100% clean coverage (#1553)
This commit is contained in:
parent
da4fce2195
commit
89e9c43acf
1 changed files with 1032 additions and 1084 deletions
|
|
@ -82,7 +82,7 @@ def test_get_npx_windows(monkeypatch: pytest.MonkeyPatch):
|
|||
def fake_run(cmd: list[str], **kw: Any) -> subprocess.CompletedProcess[bytes]:
|
||||
if cmd[0] in candidates:
|
||||
return subprocess.CompletedProcess(cmd, 0)
|
||||
else:
|
||||
else: # pragma: no cover
|
||||
raise subprocess.CalledProcessError(1, cmd[0])
|
||||
|
||||
monkeypatch.setattr(sys, "platform", "win32")
|
||||
|
|
|
|||
Loading…
Reference in a new issue