Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1857 from snyk/chore/test-handlers-folder
chore: handler test folder separation
- Loading branch information
Showing
47 changed files
with
82 additions
and
82 deletions.
There are no files selected for viewing
76 changes: 76 additions & 0 deletions
76
...dlers/pip-requirements/update-dependencies/__snapshots__/update-dependencies.spec.ts.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`fix *req*.txt / *.txt Python projects fixes multiple files via -c & -r with the same name (some were already fixed) 1`] = ` | ||
" | ||
Successful fixes: | ||
test/acceptance/plugins/python/handlers/pip-requirements/update-dependencies/workspaces/app-with-constraints/requirements.txt | ||
✔ Upgraded Django from 1.6.1 to 2.0.1 | ||
✔ Upgraded Django from 1.6.1 to 2.0.1 (upgraded in test/acceptance/plugins/python/handlers/pip-requirements/update-dependencies/workspaces/app-with-constraints/constraints.txt) | ||
✔ Upgraded Jinja2 from 2.7.2 to 2.7.3 (upgraded in test/acceptance/plugins/python/handlers/pip-requirements/update-dependencies/workspaces/app-with-constraints/lib/requirements.txt) | ||
✔ Pinned transitive from 1.0.1 to 2.0.1 (pinned in test/acceptance/plugins/python/handlers/pip-requirements/update-dependencies/workspaces/app-with-constraints/constraints.txt) | ||
test/acceptance/plugins/python/handlers/pip-requirements/update-dependencies/workspaces/app-with-constraints/lib/requirements.txt | ||
✔ Fixed through test/acceptance/plugins/python/handlers/pip-requirements/update-dependencies/workspaces/app-with-constraints/requirements.txt | ||
Summary: | ||
0 items were not fixed | ||
2 items were successfully fixed | ||
6 total issues: 2 High | 2 Medium | 2 Low | ||
6 fixable issues | ||
6 fixed issues" | ||
`; | ||
|
||
exports[`fix *req*.txt / *.txt Python projects fixes multiple files via -r with the same name (some were already fixed) 1`] = ` | ||
" | ||
Successful fixes: | ||
test/acceptance/plugins/python/handlers/pip-requirements/update-dependencies/workspaces/app-with-already-fixed/requirements.txt | ||
✔ Upgraded Django from 1.6.1 to 2.0.1 | ||
✔ Upgraded Django from 1.6.1 to 2.0.1 (upgraded in test/acceptance/plugins/python/handlers/pip-requirements/update-dependencies/workspaces/app-with-already-fixed/core/requirements.txt) | ||
✔ Upgraded Jinja2 from 2.7.2 to 2.7.3 (upgraded in test/acceptance/plugins/python/handlers/pip-requirements/update-dependencies/workspaces/app-with-already-fixed/lib/requirements.txt) | ||
test/acceptance/plugins/python/handlers/pip-requirements/update-dependencies/workspaces/app-with-already-fixed/core/requirements.txt | ||
✔ Fixed through test/acceptance/plugins/python/handlers/pip-requirements/update-dependencies/workspaces/app-with-already-fixed/requirements.txt | ||
test/acceptance/plugins/python/handlers/pip-requirements/update-dependencies/workspaces/app-with-already-fixed/lib/requirements.txt | ||
✔ Fixed through test/acceptance/plugins/python/handlers/pip-requirements/update-dependencies/workspaces/app-with-already-fixed/requirements.txt | ||
Summary: | ||
0 items were not fixed | ||
3 items were successfully fixed | ||
6 total issues: 3 High | 3 Medium | ||
6 fixable issues | ||
6 fixed issues" | ||
`; | ||
|
||
exports[`fix *req*.txt / *.txt Python projects retains python markers 1`] = ` | ||
"amqp==2.4.2 | ||
apscheduler==3.6.0 | ||
asn1crypto==0.24.0 | ||
astroid==1.6.6 | ||
atomicwrites==1.3.0 | ||
attrs==19.1.0 | ||
automat==0.7.0 | ||
backports.functools-lru-cache==1.5 ; python_version < '3.2' | ||
billiard==3.6.0.0 | ||
celery==4.3.0 | ||
certifi==2019.3.9 | ||
cffi==1.12.3 | ||
chardet==3.0.4 | ||
click==7.1 ; python_version > '1.0' | ||
clickclick==1.2.2 | ||
configparser==3.7.4 ; python_version == '2.7' | ||
connexion[swagger-ui]==2.2.0 | ||
constantly==15.1.0 | ||
cryptography==2.6.1 | ||
cssselect==1.0.3 | ||
cython==0.29.7 | ||
enum34==1.1.6 ; python_version < '2.6' | ||
fastavro==0.21.21 | ||
flask-apscheduler==1.11.0 | ||
flask==1.0.2 | ||
" | ||
`; |
4 changes: 2 additions & 2 deletions
4
...e-dependencies/extract-provenance.spec.ts → ...e-dependencies/extract-provenance.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
...-dependencies/update-dependencies.spec.ts → ...-dependencies/update-dependencies.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
76 changes: 0 additions & 76 deletions
76
...lugins/python/handlers/update-dependencies/__snapshots__/update-dependencies.spec.ts.snap
This file was deleted.
Oops, something went wrong.