Skip to content

Commit 106ca54

Browse files
author
mathioud
committed
update tests files version and doctest
Signed-off-by: mathioud <georgios.mathioudakis@here.com>
1 parent 714d672 commit 106ca54

4 files changed

Lines changed: 38 additions & 38 deletions

File tree

src/python_inspector/utils_pypi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1608,7 +1608,7 @@ def resolve_relative_url(package_url, url):
16081608
Args:
16091609
package_url (str): The base URL of the package.
16101610
url (str): The URL to be resolved.
1611-
1611+
16121612
Returns:
16131613
str: The resolved URL.
16141614
Examples:

tests/data/azure-devops.req-310-expected.json

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -889,12 +889,12 @@
889889
"type": "pypi",
890890
"namespace": null,
891891
"name": "click",
892-
"version": "8.1.4",
892+
"version": "8.1.5",
893893
"qualifiers": {},
894894
"subpath": null,
895895
"primary_language": "Python",
896896
"description": "Composable command line interface toolkit\n\\$ click\\_\n==========\n\nClick is a Python package for creating beautiful command line interfaces\nin a composable way with as little code as necessary. It's the \"Command\nLine Interface Creation Kit\". It's highly configurable but comes with\nsensible defaults out of the box.\n\nIt aims to make the process of writing command line tools quick and fun\nwhile also preventing any frustration caused by the inability to\nimplement an intended CLI API.\n\nClick in three points:\n\n- Arbitrary nesting of commands\n- Automatic help page generation\n- Supports lazy loading of subcommands at runtime\n\n\nInstalling\n----------\n\nInstall and update using `pip`_:\n\n.. code-block:: text\n\n $ pip install -U click\n\n.. _pip: https://pip.pypa.io/en/stable/getting-started/\n\n\nA Simple Example\n----------------\n\n.. code-block:: python\n\n import click\n\n @click.command()\n @click.option(\"--count\", default=1, help=\"Number of greetings.\")\n @click.option(\"--name\", prompt=\"Your name\", help=\"The person to greet.\")\n def hello(count, name):\n \"\"\"Simple program that greets NAME for a total of COUNT times.\"\"\"\n for _ in range(count):\n click.echo(f\"Hello, {name}!\")\n\n if __name__ == '__main__':\n hello()\n\n.. code-block:: text\n\n $ python hello.py --count=3\n Your name: Click\n Hello, Click!\n Hello, Click!\n Hello, Click!\n\n\nDonate\n------\n\nThe Pallets organization develops and supports Click and other popular\npackages. 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://click.palletsprojects.com/\n- Changes: https://click.palletsprojects.com/changes/\n- PyPI Releases: https://pypi.org/project/click/\n- Source Code: https://github.com/pallets/click\n- Issue Tracker: https://github.com/pallets/click/issues\n- Chat: https://discord.gg/pallets",
897-
"release_date": "2023-07-06T18:27:14",
897+
"release_date": "2023-07-13T15:07:09",
898898
"parties": [
899899
{
900900
"type": "person",
@@ -911,11 +911,11 @@
911911
"Programming Language :: Python"
912912
],
913913
"homepage_url": "https://palletsprojects.com/p/click/",
914-
"download_url": "https://files.pythonhosted.org/packages/f9/a6/dc327484918f1656cc9fcebebe77efcfc0ef0d447fa925a8760ee55abe0e/click-8.1.4-py3-none-any.whl",
915-
"size": 98151,
914+
"download_url": "https://files.pythonhosted.org/packages/22/b3/1da4ea0efa2e5ae410a347be614162ca08bd24a84059938aa5122d1e751b/click-8.1.5-py3-none-any.whl",
915+
"size": 98101,
916916
"sha1": null,
917-
"md5": "6cffa64b850cd54c9fc1b152272431f3",
918-
"sha256": "2739815aaa5d2c986a88f1e9230c55e17f0caad3d958a5e13ad0797c166db9e3",
917+
"md5": "dc35b51c85d43170abe648acc63cdf8e",
918+
"sha256": "e576aa487d679441d7d30abb87e1b43d24fc53bffb8758443b1a9e1cee504548",
919919
"sha512": null,
920920
"bug_tracking_url": "https://github.com/pallets/click/issues/",
921921
"code_view_url": "https://github.com/pallets/click/",
@@ -935,20 +935,20 @@
935935
"dependencies": [],
936936
"repository_homepage_url": null,
937937
"repository_download_url": null,
938-
"api_data_url": "https://pypi.org/pypi/click/8.1.4/json",
938+
"api_data_url": "https://pypi.org/pypi/click/8.1.5/json",
939939
"datasource_id": null,
940-
"purl": "pkg:pypi/click@8.1.4"
940+
"purl": "pkg:pypi/click@8.1.5"
941941
},
942942
{
943943
"type": "pypi",
944944
"namespace": null,
945945
"name": "click",
946-
"version": "8.1.4",
946+
"version": "8.1.5",
947947
"qualifiers": {},
948948
"subpath": null,
949949
"primary_language": "Python",
950950
"description": "Composable command line interface toolkit\n\\$ click\\_\n==========\n\nClick is a Python package for creating beautiful command line interfaces\nin a composable way with as little code as necessary. It's the \"Command\nLine Interface Creation Kit\". It's highly configurable but comes with\nsensible defaults out of the box.\n\nIt aims to make the process of writing command line tools quick and fun\nwhile also preventing any frustration caused by the inability to\nimplement an intended CLI API.\n\nClick in three points:\n\n- Arbitrary nesting of commands\n- Automatic help page generation\n- Supports lazy loading of subcommands at runtime\n\n\nInstalling\n----------\n\nInstall and update using `pip`_:\n\n.. code-block:: text\n\n $ pip install -U click\n\n.. _pip: https://pip.pypa.io/en/stable/getting-started/\n\n\nA Simple Example\n----------------\n\n.. code-block:: python\n\n import click\n\n @click.command()\n @click.option(\"--count\", default=1, help=\"Number of greetings.\")\n @click.option(\"--name\", prompt=\"Your name\", help=\"The person to greet.\")\n def hello(count, name):\n \"\"\"Simple program that greets NAME for a total of COUNT times.\"\"\"\n for _ in range(count):\n click.echo(f\"Hello, {name}!\")\n\n if __name__ == '__main__':\n hello()\n\n.. code-block:: text\n\n $ python hello.py --count=3\n Your name: Click\n Hello, Click!\n Hello, Click!\n Hello, Click!\n\n\nDonate\n------\n\nThe Pallets organization develops and supports Click and other popular\npackages. 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://click.palletsprojects.com/\n- Changes: https://click.palletsprojects.com/changes/\n- PyPI Releases: https://pypi.org/project/click/\n- Source Code: https://github.com/pallets/click\n- Issue Tracker: https://github.com/pallets/click/issues\n- Chat: https://discord.gg/pallets",
951-
"release_date": "2023-07-06T18:27:16",
951+
"release_date": "2023-07-13T15:07:11",
952952
"parties": [
953953
{
954954
"type": "person",
@@ -965,11 +965,11 @@
965965
"Programming Language :: Python"
966966
],
967967
"homepage_url": "https://palletsprojects.com/p/click/",
968-
"download_url": "https://files.pythonhosted.org/packages/77/88/b0cc5fe95c31c301e9823ea9b028f669c0dcfa205ff71111037a5ed4892c/click-8.1.4.tar.gz",
969-
"size": 334821,
968+
"download_url": "https://files.pythonhosted.org/packages/7e/ad/7a6a96fab480fb2fbf52f782b2deb3abe1d2c81eca3ef68a575b5a6a4f2e/click-8.1.5.tar.gz",
969+
"size": 336199,
970970
"sha1": null,
971-
"md5": "d19686712c4a599bc8bf1f6f3ea7947d",
972-
"sha256": "b97d0c74955da062a7d4ef92fadb583806a585b2ea81958a81bd72726cbb8e37",
971+
"md5": "7ca55ba4d82321d69594e3a1a4164132",
972+
"sha256": "4be4b1af8d665c6d942909916d31a213a106800c47d0eeba73d34da3cbc11367",
973973
"sha512": null,
974974
"bug_tracking_url": "https://github.com/pallets/click/issues/",
975975
"code_view_url": "https://github.com/pallets/click/",
@@ -989,9 +989,9 @@
989989
"dependencies": [],
990990
"repository_homepage_url": null,
991991
"repository_download_url": null,
992-
"api_data_url": "https://pypi.org/pypi/click/8.1.4/json",
992+
"api_data_url": "https://pypi.org/pypi/click/8.1.5/json",
993993
"datasource_id": null,
994-
"purl": "pkg:pypi/click@8.1.4"
994+
"purl": "pkg:pypi/click@8.1.5"
995995
},
996996
{
997997
"type": "pypi",
@@ -2517,7 +2517,7 @@
25172517
"dependencies": []
25182518
},
25192519
{
2520-
"package": "pkg:pypi/click@8.1.4",
2520+
"package": "pkg:pypi/click@8.1.5",
25212521
"dependencies": []
25222522
},
25232523
{

tests/data/azure-devops.req-38-expected.json

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -889,12 +889,12 @@
889889
"type": "pypi",
890890
"namespace": null,
891891
"name": "click",
892-
"version": "8.1.4",
892+
"version": "8.1.5",
893893
"qualifiers": {},
894894
"subpath": null,
895895
"primary_language": "Python",
896896
"description": "Composable command line interface toolkit\n\\$ click\\_\n==========\n\nClick is a Python package for creating beautiful command line interfaces\nin a composable way with as little code as necessary. It's the \"Command\nLine Interface Creation Kit\". It's highly configurable but comes with\nsensible defaults out of the box.\n\nIt aims to make the process of writing command line tools quick and fun\nwhile also preventing any frustration caused by the inability to\nimplement an intended CLI API.\n\nClick in three points:\n\n- Arbitrary nesting of commands\n- Automatic help page generation\n- Supports lazy loading of subcommands at runtime\n\n\nInstalling\n----------\n\nInstall and update using `pip`_:\n\n.. code-block:: text\n\n $ pip install -U click\n\n.. _pip: https://pip.pypa.io/en/stable/getting-started/\n\n\nA Simple Example\n----------------\n\n.. code-block:: python\n\n import click\n\n @click.command()\n @click.option(\"--count\", default=1, help=\"Number of greetings.\")\n @click.option(\"--name\", prompt=\"Your name\", help=\"The person to greet.\")\n def hello(count, name):\n \"\"\"Simple program that greets NAME for a total of COUNT times.\"\"\"\n for _ in range(count):\n click.echo(f\"Hello, {name}!\")\n\n if __name__ == '__main__':\n hello()\n\n.. code-block:: text\n\n $ python hello.py --count=3\n Your name: Click\n Hello, Click!\n Hello, Click!\n Hello, Click!\n\n\nDonate\n------\n\nThe Pallets organization develops and supports Click and other popular\npackages. 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://click.palletsprojects.com/\n- Changes: https://click.palletsprojects.com/changes/\n- PyPI Releases: https://pypi.org/project/click/\n- Source Code: https://github.com/pallets/click\n- Issue Tracker: https://github.com/pallets/click/issues\n- Chat: https://discord.gg/pallets",
897-
"release_date": "2023-07-06T18:27:14",
897+
"release_date": "2023-07-13T15:07:09",
898898
"parties": [
899899
{
900900
"type": "person",
@@ -911,11 +911,11 @@
911911
"Programming Language :: Python"
912912
],
913913
"homepage_url": "https://palletsprojects.com/p/click/",
914-
"download_url": "https://files.pythonhosted.org/packages/f9/a6/dc327484918f1656cc9fcebebe77efcfc0ef0d447fa925a8760ee55abe0e/click-8.1.4-py3-none-any.whl",
915-
"size": 98151,
914+
"download_url": "https://files.pythonhosted.org/packages/22/b3/1da4ea0efa2e5ae410a347be614162ca08bd24a84059938aa5122d1e751b/click-8.1.5-py3-none-any.whl",
915+
"size": 98101,
916916
"sha1": null,
917-
"md5": "6cffa64b850cd54c9fc1b152272431f3",
918-
"sha256": "2739815aaa5d2c986a88f1e9230c55e17f0caad3d958a5e13ad0797c166db9e3",
917+
"md5": "dc35b51c85d43170abe648acc63cdf8e",
918+
"sha256": "e576aa487d679441d7d30abb87e1b43d24fc53bffb8758443b1a9e1cee504548",
919919
"sha512": null,
920920
"bug_tracking_url": "https://github.com/pallets/click/issues/",
921921
"code_view_url": "https://github.com/pallets/click/",
@@ -935,20 +935,20 @@
935935
"dependencies": [],
936936
"repository_homepage_url": null,
937937
"repository_download_url": null,
938-
"api_data_url": "https://pypi.org/pypi/click/8.1.4/json",
938+
"api_data_url": "https://pypi.org/pypi/click/8.1.5/json",
939939
"datasource_id": null,
940-
"purl": "pkg:pypi/click@8.1.4"
940+
"purl": "pkg:pypi/click@8.1.5"
941941
},
942942
{
943943
"type": "pypi",
944944
"namespace": null,
945945
"name": "click",
946-
"version": "8.1.4",
946+
"version": "8.1.5",
947947
"qualifiers": {},
948948
"subpath": null,
949949
"primary_language": "Python",
950950
"description": "Composable command line interface toolkit\n\\$ click\\_\n==========\n\nClick is a Python package for creating beautiful command line interfaces\nin a composable way with as little code as necessary. It's the \"Command\nLine Interface Creation Kit\". It's highly configurable but comes with\nsensible defaults out of the box.\n\nIt aims to make the process of writing command line tools quick and fun\nwhile also preventing any frustration caused by the inability to\nimplement an intended CLI API.\n\nClick in three points:\n\n- Arbitrary nesting of commands\n- Automatic help page generation\n- Supports lazy loading of subcommands at runtime\n\n\nInstalling\n----------\n\nInstall and update using `pip`_:\n\n.. code-block:: text\n\n $ pip install -U click\n\n.. _pip: https://pip.pypa.io/en/stable/getting-started/\n\n\nA Simple Example\n----------------\n\n.. code-block:: python\n\n import click\n\n @click.command()\n @click.option(\"--count\", default=1, help=\"Number of greetings.\")\n @click.option(\"--name\", prompt=\"Your name\", help=\"The person to greet.\")\n def hello(count, name):\n \"\"\"Simple program that greets NAME for a total of COUNT times.\"\"\"\n for _ in range(count):\n click.echo(f\"Hello, {name}!\")\n\n if __name__ == '__main__':\n hello()\n\n.. code-block:: text\n\n $ python hello.py --count=3\n Your name: Click\n Hello, Click!\n Hello, Click!\n Hello, Click!\n\n\nDonate\n------\n\nThe Pallets organization develops and supports Click and other popular\npackages. 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://click.palletsprojects.com/\n- Changes: https://click.palletsprojects.com/changes/\n- PyPI Releases: https://pypi.org/project/click/\n- Source Code: https://github.com/pallets/click\n- Issue Tracker: https://github.com/pallets/click/issues\n- Chat: https://discord.gg/pallets",
951-
"release_date": "2023-07-06T18:27:16",
951+
"release_date": "2023-07-13T15:07:11",
952952
"parties": [
953953
{
954954
"type": "person",
@@ -965,11 +965,11 @@
965965
"Programming Language :: Python"
966966
],
967967
"homepage_url": "https://palletsprojects.com/p/click/",
968-
"download_url": "https://files.pythonhosted.org/packages/77/88/b0cc5fe95c31c301e9823ea9b028f669c0dcfa205ff71111037a5ed4892c/click-8.1.4.tar.gz",
969-
"size": 334821,
968+
"download_url": "https://files.pythonhosted.org/packages/7e/ad/7a6a96fab480fb2fbf52f782b2deb3abe1d2c81eca3ef68a575b5a6a4f2e/click-8.1.5.tar.gz",
969+
"size": 336199,
970970
"sha1": null,
971-
"md5": "d19686712c4a599bc8bf1f6f3ea7947d",
972-
"sha256": "b97d0c74955da062a7d4ef92fadb583806a585b2ea81958a81bd72726cbb8e37",
971+
"md5": "7ca55ba4d82321d69594e3a1a4164132",
972+
"sha256": "4be4b1af8d665c6d942909916d31a213a106800c47d0eeba73d34da3cbc11367",
973973
"sha512": null,
974974
"bug_tracking_url": "https://github.com/pallets/click/issues/",
975975
"code_view_url": "https://github.com/pallets/click/",
@@ -989,9 +989,9 @@
989989
"dependencies": [],
990990
"repository_homepage_url": null,
991991
"repository_download_url": null,
992-
"api_data_url": "https://pypi.org/pypi/click/8.1.4/json",
992+
"api_data_url": "https://pypi.org/pypi/click/8.1.5/json",
993993
"datasource_id": null,
994-
"purl": "pkg:pypi/click@8.1.4"
994+
"purl": "pkg:pypi/click@8.1.5"
995995
},
996996
{
997997
"type": "pypi",
@@ -2517,7 +2517,7 @@
25172517
"dependencies": []
25182518
},
25192519
{
2520-
"package": "pkg:pypi/click@8.1.4",
2520+
"package": "pkg:pypi/click@8.1.5",
25212521
"dependencies": []
25222522
},
25232523
{

tests/test_resolution.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def test_get_resolved_dependencies_with_flask_and_python_310():
4545
as_tree=False,
4646
)
4747
assert plist == [
48-
"pkg:pypi/click@8.1.4",
48+
"pkg:pypi/click@8.1.5",
4949
"pkg:pypi/flask@2.1.2",
5050
"pkg:pypi/itsdangerous@2.1.2",
5151
"pkg:pypi/jinja2@3.1.2",
@@ -68,7 +68,7 @@ def test_get_resolved_dependencies_with_flask_and_python_310_windows():
6868
as_tree=False,
6969
)
7070
assert plist == [
71-
"pkg:pypi/click@8.1.4",
71+
"pkg:pypi/click@8.1.5",
7272
"pkg:pypi/colorama@0.4.6",
7373
"pkg:pypi/flask@2.1.2",
7474
"pkg:pypi/itsdangerous@2.1.2",
@@ -119,7 +119,7 @@ def test_get_resolved_dependencies_with_tilde_requirement_using_json_api():
119119
),
120120
)
121121
assert plist == [
122-
"pkg:pypi/click@8.1.4",
122+
"pkg:pypi/click@8.1.5",
123123
"pkg:pypi/flask@2.1.3",
124124
"pkg:pypi/importlib-metadata@6.8.0",
125125
"pkg:pypi/itsdangerous@2.1.2",

0 commit comments

Comments
 (0)