Skip to content

Commit 06a3bf2

Browse files
committed
Return package_uids in for_packages #444
* This is so we are consistent with scancode-toolkit JSON output * Update expected test results Signed-off-by: Jono Yang <jyang@nexb.com>
1 parent 63a2f60 commit 06a3bf2

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

CHANGELOG.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ v31.0.0 (2022-08-25)
106106
- ``CodebaseResource.for_packages`` now returns a list of
107107
``DiscoveredPackage.package_uid`` or ``DiscoveredPackage.package_url`` if
108108
``DiscoveredPackage.package_uid`` is not present. This is done to reflect the
109-
how scancode-toolkit's JSON output returns ``package_uid`` in the
109+
how scancode-toolkit's JSON output returns ``package_uid``s in the
110110
``for_packages`` field for Resources.
111111

112112
v30.2.0 (2021-12-17)

scanpipe/tests/data/asgiref-3.3.0_load_inventory_expected.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -862,6 +862,7 @@
862862
"name": "WHEEL",
863863
"extension": "",
864864
"programming_language": "",
865+
"mime_type": "text/plain",
865866
"is_binary": false,
866867
"is_text": true,
867868
"is_archive": false,
@@ -888,6 +889,7 @@
888889
"name": "top_level.txt",
889890
"extension": ".txt",
890891
"programming_language": "",
892+
"mime_type": "text/plain",
891893
"is_binary": false,
892894
"is_text": true,
893895
"is_archive": false,
@@ -914,6 +916,7 @@
914916
"name": "__init__.py",
915917
"extension": ".py",
916918
"programming_language": "Python",
919+
"mime_type": "text/plain",
917920
"is_binary": false,
918921
"is_text": true,
919922
"is_archive": false,
@@ -940,6 +943,7 @@
940943
"name": "compatibility.py",
941944
"extension": ".py",
942945
"programming_language": "Python",
946+
"mime_type": "text/x-script.python",
943947
"is_binary": false,
944948
"is_text": true,
945949
"is_archive": false,
@@ -966,6 +970,7 @@
966970
"name": "current_thread_executor.py",
967971
"extension": ".py",
968972
"programming_language": "Python",
973+
"mime_type": "text/x-script.python",
969974
"is_binary": false,
970975
"is_text": true,
971976
"is_archive": false,

0 commit comments

Comments
 (0)