Match actual block output in pdm e2e assertions

The user-facing message is "Safe-chain: blocked N malicious package
downloads", not "blocked by safe-chain" (which only appears in the
proxy's HTTP response, not the rendered CLI output).
This commit is contained in:
Chris Ingram 2026-05-14 16:48:18 +01:00
parent ffe7f8de1f
commit 8ab5cebd4f
No known key found for this signature in database

View file

@ -74,7 +74,7 @@ describe("E2E: pdm coverage", () => {
);
assert.ok(
result.output.includes("blocked by safe-chain"),
result.output.includes("blocked") && result.output.includes("malicious package downloads"),
`Expected malware to be blocked. Output was:\n${result.output}`
);
assert.ok(
@ -235,7 +235,7 @@ describe("E2E: pdm coverage", () => {
);
assert.ok(
result.output.includes("blocked by safe-chain"),
result.output.includes("blocked") && result.output.includes("malicious package downloads"),
`Expected malware to be blocked during add (which triggers install). Output was:\n${result.output}`
);
assert.ok(
@ -256,7 +256,7 @@ describe("E2E: pdm coverage", () => {
);
assert.ok(
result.output.includes("blocked by safe-chain"),
result.output.includes("blocked") && result.output.includes("malicious package downloads"),
`Expected malware to be blocked. Output was:\n${result.output}`
);
assert.ok(