Skip to content

Commit 093275f

Browse files
committed
fix tests.
Signed-off-by: Bennati, Stefano <[email protected]>
1 parent 5dadfb3 commit 093275f

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

src/python_inspector/resolution.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,8 @@ def get_requirements_from_python_manifest(
322322
)
323323
if len(setup_fct) > 1:
324324
print(
325-
f"Warning: identified multiple definitions of 'setup()' in {setup_py_location}, defaulting to the first occurrence"
325+
f"Warning: identified multiple definitions of 'setup()' in {setup_py_location}, "
326+
"defaulting to the first occurrence"
326327
)
327328
setup_fct = setup_fct[0]
328329
install_requires = [
@@ -334,7 +335,8 @@ def get_requirements_from_python_manifest(
334335
)
335336
if len(install_requires) > 1:
336337
print(
337-
f"Warning: identified multiple definitions of 'install_requires' in {setup_py_location}, defaulting to the first occurrence"
338+
f"Warning: identified multiple definitions of 'install_requires' in "
339+
"{setup_py_location}, defaulting to the first occurrence"
338340
)
339341
install_requires = install_requires[0].elts
340342
if len(install_requires) != 0:

tests/test_resolution.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def test_get_resolved_dependencies_with_flask_and_python_310():
5050
"pkg:pypi/[email protected]",
5151
"pkg:pypi/[email protected]",
5252
"pkg:pypi/[email protected]",
53-
"pkg:pypi/[email protected].2",
53+
"pkg:pypi/[email protected].3",
5454
]
5555

5656

@@ -74,7 +74,7 @@ def test_get_resolved_dependencies_with_flask_and_python_310_windows():
7474
"pkg:pypi/[email protected]",
7575
"pkg:pypi/[email protected]",
7676
"pkg:pypi/[email protected]",
77-
"pkg:pypi/[email protected].2",
77+
"pkg:pypi/[email protected].3",
7878
]
7979

8080

@@ -125,7 +125,7 @@ def test_get_resolved_dependencies_with_tilde_requirement_using_json_api():
125125
"pkg:pypi/[email protected]",
126126
"pkg:pypi/[email protected]",
127127
"pkg:pypi/[email protected]",
128-
"pkg:pypi/[email protected].2",
128+
"pkg:pypi/[email protected].3",
129129
"pkg:pypi/[email protected]",
130130
]
131131

@@ -151,7 +151,7 @@ def test_without_supported_wheels():
151151
"pkg:pypi/[email protected]",
152152
"pkg:pypi/[email protected]",
153153
"pkg:pypi/[email protected]",
154-
"pkg:pypi/setuptools@67.2.0",
154+
"pkg:pypi/setuptools@67.3.2",
155155
"pkg:pypi/[email protected]",
156156
]
157157

0 commit comments

Comments
 (0)