Skip to content

Commit b2ab4c0

Browse files
authored
fix: bump snyk python plugin (#4971)
1 parent e084c24 commit b2ab4c0

File tree

3 files changed

+25
-8
lines changed

3 files changed

+25
-8
lines changed

package-lock.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@
123123
"snyk-nuget-plugin": "2.3.3",
124124
"snyk-php-plugin": "1.9.2",
125125
"snyk-policy": "^1.25.0",
126-
"snyk-python-plugin": "^2.0.5",
126+
"snyk-python-plugin": "^2.0.6",
127127
"snyk-resolve-deps": "4.7.3",
128128
"snyk-sbt-plugin": "2.17.1",
129129
"snyk-swiftpm-plugin": "1.4.1",

test/jest/acceptance/snyk-test/basic-test-all-languages.spec.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,23 @@ describe('`snyk test` of basic projects for each language/ecosystem', () => {
117117
expect(code).toEqual(0);
118118
});
119119

120+
test('fails `snyk test` on a python project with wrong command exits with code 2', async () => {
121+
const project = await createProjectFromWorkspace('pip-app');
122+
let wrongPythonCommand = 'pthon';
123+
124+
await runCommand(wrongPythonCommand, ['--version']).catch(function() {
125+
wrongPythonCommand = 'pthon3';
126+
});
127+
128+
const result = await runSnykCLI('test -d --command=' + wrongPythonCommand, {
129+
cwd: project.path(),
130+
env,
131+
});
132+
133+
expect(result.code).toEqual(2);
134+
expect(result.stderr).toMatch(wrongPythonCommand);
135+
});
136+
120137
test('run `snyk test` on a gradle project', async () => {
121138
const project = await createProjectFromWorkspace('gradle-app');
122139

0 commit comments

Comments
 (0)