Skip to content

Commit ea3e299

Browse files
committed
Update test and format code
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
1 parent 49716cb commit ea3e299

File tree

4 files changed

+24
-25
lines changed

4 files changed

+24
-25
lines changed

tests/data/pinned-pdt-requirements.txt-expected.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -900,12 +900,12 @@
900900
"type": "pypi",
901901
"namespace": null,
902902
"name": "boolean-py",
903-
"version": "5.0",
903+
"version": "4.0",
904904
"qualifiers": {},
905905
"subpath": null,
906906
"primary_language": "Python",
907907
"description": "Define boolean algebras, create and parse boolean expressions and create custom boolean DSL.\nThis library helps you deal with boolean expressions and algebra with variables\nand the boolean functions AND, OR, NOT.\n\nYou can parse expressions from strings and simplify and compare expressions.\nYou can also easily create your custom algreba and mini DSL and create custom\ntokenizers to handle custom expressions.\n\nFor extensive documentation look either into the docs directory or view it online, at\nhttps://booleanpy.readthedocs.org/en/latest/\n\nhttps://github.com/bastikr/boolean.py\n\nCopyright (c) 2009-2020 Sebastian Kraemer, basti.kr@gmail.com and others\nSPDX-License-Identifier: BSD-2-Clause",
908-
"release_date": "2025-04-03T10:39:48",
908+
"release_date": "2022-05-05T08:18:58",
909909
"parties": [
910910
{
911911
"type": "person",
@@ -931,11 +931,11 @@
931931
"Topic :: Utilities"
932932
],
933933
"homepage_url": "https://github.com/bastikr/boolean.py",
934-
"download_url": "https://files.pythonhosted.org/packages/e5/ca/78d423b324b8d77900030fa59c4aa9054261ef0925631cd2501dd015b7b7/boolean_py-5.0-py3-none-any.whl",
935-
"size": 26577,
934+
"download_url": "https://files.pythonhosted.org/packages/3f/02/6389ef0529af6da0b913374dedb9bbde8eabfe45767ceec38cc37801b0bd/boolean.py-4.0-py3-none-any.whl",
935+
"size": 25909,
936936
"sha1": null,
937-
"md5": "df9060a88bfb6ba3b9314783b16a0faa",
938-
"sha256": "ef28a70bd43115208441b53a045d1549e2f0ec6e3d08a9d142cbc41c1938e8d9",
937+
"md5": "73208a6fc38d6904a1d7e793e8da1292",
938+
"sha256": "2876f2051d7d6394a531d82dc6eb407faa0b01a0a0b3083817ccd7323b8d96bd",
939939
"sha512": null,
940940
"bug_tracking_url": null,
941941
"code_view_url": null,
@@ -952,9 +952,9 @@
952952
"dependencies": [],
953953
"repository_homepage_url": null,
954954
"repository_download_url": null,
955-
"api_data_url": "https://pypi.org/pypi/boolean-py/5.0/json",
955+
"api_data_url": "https://pypi.org/pypi/boolean-py/4.0/json",
956956
"datasource_id": null,
957-
"purl": "pkg:pypi/boolean-py@5.0"
957+
"purl": "pkg:pypi/boolean-py@4.0"
958958
},
959959
{
960960
"type": "pypi",
@@ -2841,7 +2841,7 @@
28412841
{
28422842
"key": "boolean-py",
28432843
"package_name": "boolean-py",
2844-
"installed_version": "5.0",
2844+
"installed_version": "4.0",
28452845
"dependencies": []
28462846
},
28472847
{
@@ -2877,7 +2877,7 @@
28772877
{
28782878
"key": "boolean-py",
28792879
"package_name": "boolean-py",
2880-
"installed_version": "5.0",
2880+
"installed_version": "4.0",
28812881
"dependencies": []
28822882
}
28832883
]

tests/data/pinned-requirements.txt-expected.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -900,12 +900,12 @@
900900
"type": "pypi",
901901
"namespace": null,
902902
"name": "boolean-py",
903-
"version": "5.0",
903+
"version": "4.0",
904904
"qualifiers": {},
905905
"subpath": null,
906906
"primary_language": "Python",
907907
"description": "Define boolean algebras, create and parse boolean expressions and create custom boolean DSL.\nThis library helps you deal with boolean expressions and algebra with variables\nand the boolean functions AND, OR, NOT.\n\nYou can parse expressions from strings and simplify and compare expressions.\nYou can also easily create your custom algreba and mini DSL and create custom\ntokenizers to handle custom expressions.\n\nFor extensive documentation look either into the docs directory or view it online, at\nhttps://booleanpy.readthedocs.org/en/latest/\n\nhttps://github.com/bastikr/boolean.py\n\nCopyright (c) 2009-2020 Sebastian Kraemer, basti.kr@gmail.com and others\nSPDX-License-Identifier: BSD-2-Clause",
908-
"release_date": "2025-04-03T10:39:48",
908+
"release_date": "2022-05-05T08:18:58",
909909
"parties": [
910910
{
911911
"type": "person",
@@ -931,11 +931,11 @@
931931
"Topic :: Utilities"
932932
],
933933
"homepage_url": "https://github.com/bastikr/boolean.py",
934-
"download_url": "https://files.pythonhosted.org/packages/e5/ca/78d423b324b8d77900030fa59c4aa9054261ef0925631cd2501dd015b7b7/boolean_py-5.0-py3-none-any.whl",
935-
"size": 26577,
934+
"download_url": "https://files.pythonhosted.org/packages/3f/02/6389ef0529af6da0b913374dedb9bbde8eabfe45767ceec38cc37801b0bd/boolean.py-4.0-py3-none-any.whl",
935+
"size": 25909,
936936
"sha1": null,
937-
"md5": "df9060a88bfb6ba3b9314783b16a0faa",
938-
"sha256": "ef28a70bd43115208441b53a045d1549e2f0ec6e3d08a9d142cbc41c1938e8d9",
937+
"md5": "73208a6fc38d6904a1d7e793e8da1292",
938+
"sha256": "2876f2051d7d6394a531d82dc6eb407faa0b01a0a0b3083817ccd7323b8d96bd",
939939
"sha512": null,
940940
"bug_tracking_url": null,
941941
"code_view_url": null,
@@ -952,9 +952,9 @@
952952
"dependencies": [],
953953
"repository_homepage_url": null,
954954
"repository_download_url": null,
955-
"api_data_url": "https://pypi.org/pypi/boolean-py/5.0/json",
955+
"api_data_url": "https://pypi.org/pypi/boolean-py/4.0/json",
956956
"datasource_id": null,
957-
"purl": "pkg:pypi/boolean-py@5.0"
957+
"purl": "pkg:pypi/boolean-py@4.0"
958958
},
959959
{
960960
"type": "pypi",
@@ -2831,7 +2831,7 @@
28312831
"package": "pkg:pypi/aboutcode-toolkit@7.0.2",
28322832
"dependencies": [
28332833
"pkg:pypi/attrs@21.4.0",
2834-
"pkg:pypi/boolean-py@5.0",
2834+
"pkg:pypi/boolean-py@4.0",
28352835
"pkg:pypi/certifi@2022.5.18.1",
28362836
"pkg:pypi/click@8.0.4",
28372837
"pkg:pypi/jinja2@3.1.6",
@@ -2852,7 +2852,7 @@
28522852
]
28532853
},
28542854
{
2855-
"package": "pkg:pypi/boolean-py@5.0",
2855+
"package": "pkg:pypi/boolean-py@4.0",
28562856
"dependencies": []
28572857
},
28582858
{
@@ -2918,7 +2918,7 @@
29182918
{
29192919
"package": "pkg:pypi/license-expression@30.3.1",
29202920
"dependencies": [
2921-
"pkg:pypi/boolean-py@5.0"
2921+
"pkg:pypi/boolean-py@4.0"
29222922
]
29232923
},
29242924
{

tests/test_api.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,6 @@ def test_api_with_partial_setup_py():
140140

141141

142142
def test_get_index_urls():
143-
144143
# pass as a tuple
145144
index_urls = get_index_urls(
146145
index_urls=("https://pypi.org/simple",),

tests/test_cli.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -230,9 +230,9 @@ def test_cli_with_single_env_var_index_url_except_pypi_simple():
230230
def test_cli_with_multiple_env_var_index_url_and_tilde_req():
231231
expected_file = test_env.get_test_loc("tilde_req-expected-env.json", must_exist=False)
232232
specifier = "zipp~=3.8.0"
233-
os.environ[
234-
"PYINSP_INDEX_URL"
235-
] = "https://pypi.org/simple https://thirdparty.aboutcode.org/pypi/simple/"
233+
os.environ["PYINSP_INDEX_URL"] = (
234+
"https://pypi.org/simple https://thirdparty.aboutcode.org/pypi/simple/"
235+
)
236236
check_specs_resolution(
237237
specifier=specifier,
238238
expected_file=expected_file,

0 commit comments

Comments
 (0)