Skip to content

Commit 1a80dde

Browse files
committed
Fix more tests.
Signed-off-by: Thomas Neidhart <thomas.neidhart@gmail.com>
1 parent c0b2426 commit 1a80dde

File tree

4 files changed

+1058
-5809
lines changed

4 files changed

+1058
-5809
lines changed

tests/data/test-api-expected.json

Lines changed: 1 addition & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -176,73 +176,6 @@
176176
"datasource_id": null,
177177
"purl": "pkg:pypi/flask@2.1.2"
178178
},
179-
{
180-
"type": "pypi",
181-
"namespace": null,
182-
"name": "flask",
183-
"version": "2.1.2",
184-
"qualifiers": {},
185-
"subpath": null,
186-
"primary_language": "Python",
187-
"description": "A simple framework for building complex web applications.\nFlask\n=====\n\nFlask is a lightweight `WSGI`_ web application framework. It is designed\nto make getting started quick and easy, with the ability to scale up to\ncomplex applications. It began as a simple wrapper around `Werkzeug`_\nand `Jinja`_ and has become one of the most popular Python web\napplication frameworks.\n\nFlask offers suggestions, but doesn't enforce any dependencies or\nproject layout. It is up to the developer to choose the tools and\nlibraries they want to use. There are many extensions provided by the\ncommunity that make adding new functionality easy.\n\n.. _WSGI: https://wsgi.readthedocs.io/\n.. _Werkzeug: https://werkzeug.palletsprojects.com/\n.. _Jinja: https://jinja.palletsprojects.com/\n\n\nInstalling\n----------\n\nInstall and update using `pip`_:\n\n.. code-block:: text\n\n $ pip install -U Flask\n\n.. _pip: https://pip.pypa.io/en/stable/getting-started/\n\n\nA Simple Example\n----------------\n\n.. code-block:: python\n\n # save this as app.py\n from flask import Flask\n\n app = Flask(__name__)\n\n @app.route(\"/\")\n def hello():\n return \"Hello, World!\"\n\n.. code-block:: text\n\n $ flask run\n * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)\n\n\nContributing\n------------\n\nFor guidance on setting up a development environment and how to make a\ncontribution to Flask, see the `contributing guidelines`_.\n\n.. _contributing guidelines: https://github.com/pallets/flask/blob/main/CONTRIBUTING.rst\n\n\nDonate\n------\n\nThe Pallets organization develops and supports Flask and the libraries\nit uses. In order to grow the community of contributors and users, and\nallow the maintainers to devote more time to the projects, `please\ndonate today`_.\n\n.. _please donate today: https://palletsprojects.com/donate\n\n\nLinks\n-----\n\n- Documentation: https://flask.palletsprojects.com/\n- Changes: https://flask.palletsprojects.com/changes/\n- PyPI Releases: https://pypi.org/project/Flask/\n- Source Code: https://github.com/pallets/flask/\n- Issue Tracker: https://github.com/pallets/flask/issues/\n- Website: https://palletsprojects.com/p/flask/\n- Twitter: https://twitter.com/PalletsTeam\n- Chat: https://discord.gg/pallets",
188-
"release_date": "2022-04-28T17:47:40",
189-
"parties": [
190-
{
191-
"type": "person",
192-
"role": "author",
193-
"name": "Armin Ronacher",
194-
"email": "armin.ronacher@active-4.com",
195-
"url": null
196-
},
197-
{
198-
"type": "person",
199-
"role": "maintainer",
200-
"name": "Pallets",
201-
"email": "contact@palletsprojects.com",
202-
"url": null
203-
}
204-
],
205-
"keywords": [
206-
"Development Status :: 5 - Production/Stable",
207-
"Environment :: Web Environment",
208-
"Framework :: Flask",
209-
"Intended Audience :: Developers",
210-
"Operating System :: OS Independent",
211-
"Programming Language :: Python",
212-
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
213-
"Topic :: Internet :: WWW/HTTP :: WSGI",
214-
"Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
215-
"Topic :: Software Development :: Libraries :: Application Frameworks"
216-
],
217-
"homepage_url": "https://palletsprojects.com/p/flask",
218-
"download_url": "https://files.pythonhosted.org/packages/d3/3c/94f38d4db919a9326a706ad56f05a7e6f0c8f7b7d93e2997cca54d3bc14b/Flask-2.1.2.tar.gz",
219-
"size": 631846,
220-
"sha1": null,
221-
"md5": "93f1832e5be704ef6ff2a4124579cd85",
222-
"sha256": "315ded2ddf8a6281567edb27393010fe3406188bafbfe65a3339d5787d89e477",
223-
"sha512": null,
224-
"bug_tracking_url": "https://github.com/pallets/flask/issues/",
225-
"code_view_url": "https://github.com/pallets/flask/",
226-
"vcs_url": null,
227-
"copyright": null,
228-
"license_expression": null,
229-
"declared_license": {
230-
"license": "BSD-3-Clause",
231-
"classifiers": [
232-
"License :: OSI Approved :: BSD License"
233-
]
234-
},
235-
"notice_text": null,
236-
"source_packages": [],
237-
"file_references": [],
238-
"extra_data": {},
239-
"dependencies": [],
240-
"repository_homepage_url": null,
241-
"repository_download_url": null,
242-
"api_data_url": "https://pypi.org/pypi/flask/2.1.2/json",
243-
"datasource_id": null,
244-
"purl": "pkg:pypi/flask@2.1.2"
245-
},
246179
{
247180
"type": "pypi",
248181
"namespace": null,
@@ -737,4 +670,4 @@
737670
]
738671
}
739672
]
740-
}
673+
}

tests/data/test-api-pdt-expected.json

Lines changed: 1 addition & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -176,73 +176,6 @@
176176
"datasource_id": null,
177177
"purl": "pkg:pypi/flask@2.1.2"
178178
},
179-
{
180-
"type": "pypi",
181-
"namespace": null,
182-
"name": "flask",
183-
"version": "2.1.2",
184-
"qualifiers": {},
185-
"subpath": null,
186-
"primary_language": "Python",
187-
"description": "A simple framework for building complex web applications.\nFlask\n=====\n\nFlask is a lightweight `WSGI`_ web application framework. It is designed\nto make getting started quick and easy, with the ability to scale up to\ncomplex applications. It began as a simple wrapper around `Werkzeug`_\nand `Jinja`_ and has become one of the most popular Python web\napplication frameworks.\n\nFlask offers suggestions, but doesn't enforce any dependencies or\nproject layout. It is up to the developer to choose the tools and\nlibraries they want to use. There are many extensions provided by the\ncommunity that make adding new functionality easy.\n\n.. _WSGI: https://wsgi.readthedocs.io/\n.. _Werkzeug: https://werkzeug.palletsprojects.com/\n.. _Jinja: https://jinja.palletsprojects.com/\n\n\nInstalling\n----------\n\nInstall and update using `pip`_:\n\n.. code-block:: text\n\n $ pip install -U Flask\n\n.. _pip: https://pip.pypa.io/en/stable/getting-started/\n\n\nA Simple Example\n----------------\n\n.. code-block:: python\n\n # save this as app.py\n from flask import Flask\n\n app = Flask(__name__)\n\n @app.route(\"/\")\n def hello():\n return \"Hello, World!\"\n\n.. code-block:: text\n\n $ flask run\n * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)\n\n\nContributing\n------------\n\nFor guidance on setting up a development environment and how to make a\ncontribution to Flask, see the `contributing guidelines`_.\n\n.. _contributing guidelines: https://github.com/pallets/flask/blob/main/CONTRIBUTING.rst\n\n\nDonate\n------\n\nThe Pallets organization develops and supports Flask and the libraries\nit uses. In order to grow the community of contributors and users, and\nallow the maintainers to devote more time to the projects, `please\ndonate today`_.\n\n.. _please donate today: https://palletsprojects.com/donate\n\n\nLinks\n-----\n\n- Documentation: https://flask.palletsprojects.com/\n- Changes: https://flask.palletsprojects.com/changes/\n- PyPI Releases: https://pypi.org/project/Flask/\n- Source Code: https://github.com/pallets/flask/\n- Issue Tracker: https://github.com/pallets/flask/issues/\n- Website: https://palletsprojects.com/p/flask/\n- Twitter: https://twitter.com/PalletsTeam\n- Chat: https://discord.gg/pallets",
188-
"release_date": "2022-04-28T17:47:40",
189-
"parties": [
190-
{
191-
"type": "person",
192-
"role": "author",
193-
"name": "Armin Ronacher",
194-
"email": "armin.ronacher@active-4.com",
195-
"url": null
196-
},
197-
{
198-
"type": "person",
199-
"role": "maintainer",
200-
"name": "Pallets",
201-
"email": "contact@palletsprojects.com",
202-
"url": null
203-
}
204-
],
205-
"keywords": [
206-
"Development Status :: 5 - Production/Stable",
207-
"Environment :: Web Environment",
208-
"Framework :: Flask",
209-
"Intended Audience :: Developers",
210-
"Operating System :: OS Independent",
211-
"Programming Language :: Python",
212-
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
213-
"Topic :: Internet :: WWW/HTTP :: WSGI",
214-
"Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
215-
"Topic :: Software Development :: Libraries :: Application Frameworks"
216-
],
217-
"homepage_url": "https://palletsprojects.com/p/flask",
218-
"download_url": "https://files.pythonhosted.org/packages/d3/3c/94f38d4db919a9326a706ad56f05a7e6f0c8f7b7d93e2997cca54d3bc14b/Flask-2.1.2.tar.gz",
219-
"size": 631846,
220-
"sha1": null,
221-
"md5": "93f1832e5be704ef6ff2a4124579cd85",
222-
"sha256": "315ded2ddf8a6281567edb27393010fe3406188bafbfe65a3339d5787d89e477",
223-
"sha512": null,
224-
"bug_tracking_url": "https://github.com/pallets/flask/issues/",
225-
"code_view_url": "https://github.com/pallets/flask/",
226-
"vcs_url": null,
227-
"copyright": null,
228-
"license_expression": null,
229-
"declared_license": {
230-
"license": "BSD-3-Clause",
231-
"classifiers": [
232-
"License :: OSI Approved :: BSD License"
233-
]
234-
},
235-
"notice_text": null,
236-
"source_packages": [],
237-
"file_references": [],
238-
"extra_data": {},
239-
"dependencies": [],
240-
"repository_homepage_url": null,
241-
"repository_download_url": null,
242-
"api_data_url": "https://pypi.org/pypi/flask/2.1.2/json",
243-
"datasource_id": null,
244-
"purl": "pkg:pypi/flask@2.1.2"
245-
},
246179
{
247180
"type": "pypi",
248181
"namespace": null,
@@ -749,4 +682,4 @@
749682
]
750683
}
751684
]
752-
}
685+
}

tests/data/test-api-with-recursive-requirement-file.json

Lines changed: 0 additions & 193 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)