Skip to content

Commit

Permalink
fix: bump snyk python plugin (#4971)
Browse files Browse the repository at this point in the history
  • Loading branch information
gemaxim committed Dec 20, 2023
1 parent e084c24 commit b2ab4c0
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 8 deletions.
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@
"snyk-nuget-plugin": "2.3.3",
"snyk-php-plugin": "1.9.2",
"snyk-policy": "^1.25.0",
"snyk-python-plugin": "^2.0.5",
"snyk-python-plugin": "^2.0.6",
"snyk-resolve-deps": "4.7.3",
"snyk-sbt-plugin": "2.17.1",
"snyk-swiftpm-plugin": "1.4.1",
Expand Down
17 changes: 17 additions & 0 deletions test/jest/acceptance/snyk-test/basic-test-all-languages.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,23 @@ describe('`snyk test` of basic projects for each language/ecosystem', () => {
expect(code).toEqual(0);
});

test('fails `snyk test` on a python project with wrong command exits with code 2', async () => {
const project = await createProjectFromWorkspace('pip-app');
let wrongPythonCommand = 'pthon';

await runCommand(wrongPythonCommand, ['--version']).catch(function() {
wrongPythonCommand = 'pthon3';
});

const result = await runSnykCLI('test -d --command=' + wrongPythonCommand, {
cwd: project.path(),
env,
});

expect(result.code).toEqual(2);
expect(result.stderr).toMatch(wrongPythonCommand);
});

test('run `snyk test` on a gradle project', async () => {
const project = await createProjectFromWorkspace('gradle-app');

Expand Down

0 comments on commit b2ab4c0

Please sign in to comment.