mirror of
https://github.com/bytedance/deer-flow.git
synced 2026-09-19 11:06:18 +00:00
test(scripts): align pnpm resolution expectation across platforms (#5519)
This commit is contained in:
parent
6a94bef908
commit
aa1077fe23
@ -31,7 +31,8 @@ def test_find_pnpm_command_prefers_resolved_executable(monkeypatch):
|
||||
|
||||
monkeypatch.setattr(pnpm_script.shutil, "which", fake_which)
|
||||
|
||||
assert pnpm_script.find_pnpm_command() == [r"C:\Users\tester\AppData\Roaming\npm\pnpm.CMD"]
|
||||
expected_path = r"C:\Users\tester\AppData\Roaming\npm\pnpm.cmd" if pnpm_script.os.name == "nt" else r"C:\Users\tester\AppData\Roaming\npm\pnpm.CMD"
|
||||
assert pnpm_script.find_pnpm_command() == [expected_path]
|
||||
|
||||
|
||||
def test_find_pnpm_command_falls_back_to_corepack(monkeypatch):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user