File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -289,9 +289,9 @@ Run this python script to generate text file with actual purls
289289 ]:
290290 with open(json_file) as f:
291291 py_insp_data = json.load(f)
292- for package in py_insp_data["packages "]:
293- if package["purl "] not in py_insp_purls:
294- py_insp_purls.append(package["purl "])
292+ for package in py_insp_data["resolved_dependencies "]:
293+ if package["package "] not in py_insp_purls:
294+ py_insp_purls.append(package["package "])
295295 py_insp_purls = sorted(py_insp_purls)
296296 with open("~/tmp/pyinsp-example/codebase/output/py-insp.txt", "w") as f:
297297 f.writelines("\n".join(py_insp_purls))
Original file line number Diff line number Diff line change @@ -82,11 +82,11 @@ def test_get_resolved_dependencies_with_flask_and_python_36():
8282 assert as_list == [
8383 "pkg:pypi/click@8.1.3" ,
8484 "pkg:pypi/flask@2.1.2" ,
85- "pkg:pypi/importlib-metadata@4.11.4 " ,
85+ "pkg:pypi/importlib-metadata@4.12.0 " ,
8686 "pkg:pypi/itsdangerous@2.1.2" ,
8787 "pkg:pypi/jinja2@3.1.2" ,
8888 "pkg:pypi/markupsafe@2.0.1" ,
89- "pkg:pypi/typing-extensions@4.2 .0" ,
89+ "pkg:pypi/typing-extensions@4.3 .0" ,
9090 "pkg:pypi/werkzeug@2.1.2" ,
9191 "pkg:pypi/zipp@3.8.0" ,
9292 ]
@@ -107,7 +107,7 @@ def test_get_resolved_dependencies_with_tilde_requirement_using_json_api():
107107 assert as_list == [
108108 "pkg:pypi/click@8.1.3" ,
109109 "pkg:pypi/flask@2.1.2" ,
110- "pkg:pypi/importlib-metadata@4.11.4 " ,
110+ "pkg:pypi/importlib-metadata@4.12.0 " ,
111111 "pkg:pypi/itsdangerous@2.1.2" ,
112112 "pkg:pypi/jinja2@3.1.2" ,
113113 "pkg:pypi/markupsafe@2.1.1" ,
You can’t perform that action at this time.
0 commit comments