Use numpy==2.4.4 as test malware in pdm e2e tests

The safe-chain-pi-test package no longer exists on PyPI. Aikido now
patches numpy==2.4.4 into the malware list for tests, matching the
pattern already used in the poetry e2e suite.
This commit is contained in:
Chris Ingram 2026-05-14 16:28:50 +01:00
parent 54db058ac7
commit ffe7f8de1f
No known key found for this signature in database

View file

@ -70,7 +70,7 @@ describe("E2E: pdm coverage", () => {
await shell.runCommand("cd /tmp/test-pdm-malware && pdm init --non-interactive"); await shell.runCommand("cd /tmp/test-pdm-malware && pdm init --non-interactive");
const result = await shell.runCommand( const result = await shell.runCommand(
"cd /tmp/test-pdm-malware && pdm add safe-chain-pi-test" "cd /tmp/test-pdm-malware && pdm add numpy==2.4.4"
); );
assert.ok( assert.ok(
@ -231,7 +231,7 @@ describe("E2E: pdm coverage", () => {
// Add malware package - this will create lock file and attempt download // Add malware package - this will create lock file and attempt download
const result = await shell.runCommand( const result = await shell.runCommand(
"cd /tmp/test-pdm-install-malware && pdm add safe-chain-pi-test 2>&1" "cd /tmp/test-pdm-install-malware && pdm add numpy==2.4.4 2>&1"
); );
assert.ok( assert.ok(
@ -252,7 +252,7 @@ describe("E2E: pdm coverage", () => {
// Try to add malware alongside safe package // Try to add malware alongside safe package
const result = await shell.runCommand( const result = await shell.runCommand(
"cd /tmp/test-pdm-batch && pdm add safe-chain-pi-test requests 2>&1" "cd /tmp/test-pdm-batch && pdm add numpy==2.4.4 requests 2>&1"
); );
assert.ok( assert.ok(