Skip to content

Commit

Permalink
Re-generate test data to fix failing tests
Browse files Browse the repository at this point in the history
Apply the effect of runnig `PYINSP_REGEN_TEST_FIXTURES=yes pytest -vvs`,
in order to fix several failing tests, e.g. in `tests/test_api.py`.

Signed-off-by: Frank Viernau <[email protected]>
  • Loading branch information
fviernau committed Sep 25, 2023
1 parent 6c5623e commit 98ee99b
Show file tree
Hide file tree
Showing 20 changed files with 466 additions and 476 deletions.
238 changes: 122 additions & 116 deletions tests/data/azure-devops.req-310-expected.json

Large diffs are not rendered by default.

238 changes: 122 additions & 116 deletions tests/data/azure-devops.req-38-expected.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"tool_homepageurl": "https://github.com/nexB/python-inspector",
"tool_version": "0.9.8",
"options": [
"--requirement /home/tg1999/Desktop/example/tools/python-inspector/tests/data/environment-marker-test-requirements.txt",
"--requirement /home/frank/sources/github/nexB/python-inspector/tests/data/environment-marker-test-requirements.txt",
"--index-url https://pypi.org/simple",
"--python-version 37",
"--operating-system linux",
Expand All @@ -17,7 +17,7 @@
"files": [
{
"type": "file",
"path": "/home/tg1999/Desktop/example/tools/python-inspector/tests/data/environment-marker-test-requirements.txt",
"path": "/home/frank/sources/github/nexB/python-inspector/tests/data/environment-marker-test-requirements.txt",
"package_data": [
{
"type": "pypi",
Expand Down
4 changes: 2 additions & 2 deletions tests/data/frozen-requirements.txt-expected.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"tool_homepageurl": "https://github.com/nexB/python-inspector",
"tool_version": "0.9.8",
"options": [
"--requirement /home/tg1999/Desktop/example/tools/python-inspector/tests/data/frozen-requirements.txt",
"--requirement /home/frank/sources/github/nexB/python-inspector/tests/data/frozen-requirements.txt",
"--index-url https://pypi.org/simple",
"--python-version 38",
"--operating-system linux",
Expand All @@ -17,7 +17,7 @@
"files": [
{
"type": "file",
"path": "/home/tg1999/Desktop/example/tools/python-inspector/tests/data/frozen-requirements.txt",
"path": "/home/frank/sources/github/nexB/python-inspector/tests/data/frozen-requirements.txt",
"package_data": [
{
"type": "pypi",
Expand Down
46 changes: 24 additions & 22 deletions tests/data/insecure-setup-2/setup.py-expected.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion tests/data/insecure-setup/setup.py-expected.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"files": [
{
"type": "file",
"path": "/home/tg1999/Desktop/example/tools/python-inspector/tests/data/insecure-setup/setup.py",
"path": "/home/frank/sources/github/nexB/python-inspector/tests/data/insecure-setup/setup.py",
"package_data": [
{
"type": "pypi",
Expand Down
4 changes: 2 additions & 2 deletions tests/data/pdt-requirements.txt-expected.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"tool_homepageurl": "https://github.com/nexB/python-inspector",
"tool_version": "0.9.8",
"options": [
"--requirement /home/tg1999/Desktop/example/tools/python-inspector/tests/data/pdt-requirements.txt",
"--requirement /home/frank/sources/github/nexB/python-inspector/tests/data/pdt-requirements.txt",
"--index-url https://pypi.org/simple",
"--python-version 38",
"--operating-system linux",
Expand All @@ -17,7 +17,7 @@
"files": [
{
"type": "file",
"path": "/home/tg1999/Desktop/example/tools/python-inspector/tests/data/pdt-requirements.txt",
"path": "/home/frank/sources/github/nexB/python-inspector/tests/data/pdt-requirements.txt",
"package_data": [
{
"type": "pypi",
Expand Down
4 changes: 2 additions & 2 deletions tests/data/pinned-pdt-requirements.txt-expected.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"tool_homepageurl": "https://github.com/nexB/python-inspector",
"tool_version": "0.9.8",
"options": [
"--requirement /home/tg1999/Desktop/example/tools/python-inspector/tests/data/pinned-pdt-requirements.txt",
"--requirement /home/frank/sources/github/nexB/python-inspector/tests/data/pinned-pdt-requirements.txt",
"--index-url https://pypi.org/simple",
"--python-version 38",
"--operating-system linux",
Expand All @@ -17,7 +17,7 @@
"files": [
{
"type": "file",
"path": "/home/tg1999/Desktop/example/tools/python-inspector/tests/data/pinned-pdt-requirements.txt",
"path": "/home/frank/sources/github/nexB/python-inspector/tests/data/pinned-pdt-requirements.txt",
"package_data": [
{
"type": "pypi",
Expand Down
4 changes: 2 additions & 2 deletions tests/data/pinned-requirements.txt-expected.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"tool_homepageurl": "https://github.com/nexB/python-inspector",
"tool_version": "0.9.8",
"options": [
"--requirement /home/tg1999/Desktop/example/tools/python-inspector/tests/data/pinned-requirements.txt",
"--requirement /home/frank/sources/github/nexB/python-inspector/tests/data/pinned-requirements.txt",
"--index-url https://pypi.org/simple",
"--python-version 38",
"--operating-system linux",
Expand All @@ -17,7 +17,7 @@
"files": [
{
"type": "file",
"path": "/home/tg1999/Desktop/example/tools/python-inspector/tests/data/pinned-requirements.txt",
"path": "/home/frank/sources/github/nexB/python-inspector/tests/data/pinned-requirements.txt",
"package_data": [
{
"type": "pypi",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"files": [
{
"type": "file",
"path": "/home/tg1999/Desktop/example/tools/python-inspector/tests/data/setup/no-direct-dependencies-setup.py",
"path": "/home/frank/sources/github/nexB/python-inspector/tests/data/setup/no-direct-dependencies-setup.py",
"package_data": [
{
"type": "pypi",
Expand Down
2 changes: 1 addition & 1 deletion tests/data/setup/simple-setup.py-expected.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"files": [
{
"type": "file",
"path": "/home/tg1999/Desktop/example/tools/python-inspector/tests/data/setup/simple-setup.py",
"path": "/home/frank/sources/github/nexB/python-inspector/tests/data/setup/simple-setup.py",
"package_data": [
{
"type": "pypi",
Expand Down
2 changes: 1 addition & 1 deletion tests/data/setup/spdx-setup.py-expected.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"files": [
{
"type": "file",
"path": "/home/tg1999/Desktop/example/tools/python-inspector/tests/data/setup/spdx-setup.py",
"path": "/home/frank/sources/github/nexB/python-inspector/tests/data/setup/spdx-setup.py",
"package_data": [
{
"type": "pypi",
Expand Down
Loading

0 comments on commit 98ee99b

Please sign in to comment.