Skip to content

Commit 06e9ac5

Browse files
Fix failing test bu regen
Signed-off-by: Ayan Sinha Mahapatra <[email protected]>
1 parent b897164 commit 06e9ac5

File tree

1 file changed

+48
-52
lines changed

1 file changed

+48
-52
lines changed

tests/formattedcode/data/yaml/package-and-licenses-expected.yaml

Lines changed: 48 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -33,34 +33,7 @@ headers:
3333
platform_version: '#67-Ubuntu SMP Mon Mar 13 14:22:10 UTC 2023'
3434
python_version: "3.8.10 (default, Mar 13 2023, 10:26:41) \n[GCC 9.4.0]"
3535
spdx_license_list_version: '3.20'
36-
additional_license_directory: /home/ayansinha/nexB/write_access/scancode-extra/tests/licensedcode/data/additional_licenses/additional_dir
37-
additional_license_plugins:
38-
- /home/ayansinha/nexB/write_access/scancode-extra/venv/lib/python3.8/site-packages/licenses_to_install1
39-
- /home/ayansinha/nexB/write_access/scancode-extra/venv/lib/python3.8/site-packages/licenses_to_install2
4036
files_count: 4
41-
summary:
42-
declared_license_expression: apache-2.0 AND (apache-2.0 OR mit)
43-
license_clarity_score:
44-
score: 100
45-
declared_license: yes
46-
identification_precision: yes
47-
has_license_text: yes
48-
declared_copyrights: yes
49-
conflicting_license_categories: no
50-
ambiguous_compound_licensing: no
51-
declared_holder: Example Corp.
52-
primary_language: Python
53-
other_license_expressions:
54-
- value:
55-
count: 1
56-
- value: apache-2.0 AND (apache-2.0 OR mit)
57-
count: 1
58-
- value: mit
59-
count: 1
60-
other_holders:
61-
- value:
62-
count: 3
63-
other_languages: []
6437
packages:
6538
- type: pypi
6639
namespace:
@@ -137,6 +110,29 @@ license_detections:
137110
- identifier: apache_2_0-ec759ae0-ea5a-f138-793e-388520e080c0
138111
license_expression: apache-2.0
139112
detection_count: 2
113+
summary:
114+
declared_license_expression: apache-2.0
115+
license_clarity_score:
116+
score: 100
117+
declared_license: yes
118+
identification_precision: yes
119+
has_license_text: yes
120+
declared_copyrights: yes
121+
conflicting_license_categories: no
122+
ambiguous_compound_licensing: no
123+
declared_holder: Example Corp.
124+
primary_language: Python
125+
other_license_expressions:
126+
- value:
127+
count: 1
128+
- value: apache-2.0 AND (apache-2.0 OR mit)
129+
count: 1
130+
- value: mit
131+
count: 1
132+
other_holders:
133+
- value:
134+
count: 3
135+
other_languages: []
140136
license_references:
141137
- key: apache-2.0
142138
language: en
@@ -728,6 +724,11 @@ files:
728724
is_script: no
729725
package_data: []
730726
for_packages: []
727+
is_legal: no
728+
is_manifest: no
729+
is_readme: no
730+
is_top_level: yes
731+
is_key_file: no
731732
detected_license_expression:
732733
detected_license_expression_spdx:
733734
license_detections: []
@@ -738,11 +739,6 @@ files:
738739
authors: []
739740
emails: []
740741
urls: []
741-
is_legal: no
742-
is_manifest: no
743-
is_readme: no
744-
is_top_level: yes
745-
is_key_file: no
746742
files_count: 4
747743
dirs_count: '0'
748744
size_count: 12561
@@ -768,6 +764,11 @@ files:
768764
package_data: []
769765
for_packages:
770766
- pkg:pypi/codebase?uuid=fixed-uid-done-for-testing-5642512d1758
767+
is_legal: no
768+
is_manifest: no
769+
is_readme: yes
770+
is_top_level: yes
771+
is_key_file: yes
771772
detected_license_expression: apache-2.0 AND (apache-2.0 OR mit)
772773
detected_license_expression_spdx: Apache-2.0 AND (Apache-2.0 OR MIT)
773774
license_detections:
@@ -809,11 +810,6 @@ files:
809810
authors: []
810811
emails: []
811812
urls: []
812-
is_legal: no
813-
is_manifest: no
814-
is_readme: yes
815-
is_top_level: yes
816-
is_key_file: yes
817813
files_count: '0'
818814
dirs_count: '0'
819815
size_count: '0'
@@ -839,6 +835,11 @@ files:
839835
package_data: []
840836
for_packages:
841837
- pkg:pypi/codebase?uuid=fixed-uid-done-for-testing-5642512d1758
838+
is_legal: yes
839+
is_manifest: no
840+
is_readme: no
841+
is_top_level: yes
842+
is_key_file: yes
842843
detected_license_expression: apache-2.0
843844
detected_license_expression_spdx: Apache-2.0
844845
license_detections:
@@ -1015,11 +1016,6 @@ files:
10151016
- url: http://www.apache.org/licenses/LICENSE-2.0
10161017
start_line: '196'
10171018
end_line: '196'
1018-
is_legal: yes
1019-
is_manifest: no
1020-
is_readme: no
1021-
is_top_level: yes
1022-
is_key_file: yes
10231019
files_count: '0'
10241020
dirs_count: '0'
10251021
size_count: '0'
@@ -1045,6 +1041,11 @@ files:
10451041
package_data: []
10461042
for_packages:
10471043
- pkg:pypi/codebase?uuid=fixed-uid-done-for-testing-5642512d1758
1044+
is_legal: yes
1045+
is_manifest: no
1046+
is_readme: no
1047+
is_top_level: yes
1048+
is_key_file: yes
10481049
detected_license_expression: mit
10491050
detected_license_expression_spdx: MIT
10501051
license_detections:
@@ -1087,11 +1088,6 @@ files:
10871088
authors: []
10881089
emails: []
10891090
urls: []
1090-
is_legal: yes
1091-
is_manifest: no
1092-
is_readme: no
1093-
is_top_level: yes
1094-
is_key_file: yes
10951091
files_count: '0'
10961092
dirs_count: '0'
10971093
size_count: '0'
@@ -1176,6 +1172,11 @@ files:
11761172
purl: pkg:pypi/codebase
11771173
for_packages:
11781174
- pkg:pypi/codebase?uuid=fixed-uid-done-for-testing-5642512d1758
1175+
is_legal: no
1176+
is_manifest: no
1177+
is_readme: no
1178+
is_top_level: no
1179+
is_key_file: no
11791180
detected_license_expression: apache-2.0
11801181
detected_license_expression_spdx: Apache-2.0
11811182
license_detections:
@@ -1203,11 +1204,6 @@ files:
12031204
end_line: 3
12041205
emails: []
12051206
urls: []
1206-
is_legal: no
1207-
is_manifest: yes
1208-
is_readme: no
1209-
is_top_level: yes
1210-
is_key_file: yes
12111207
files_count: '0'
12121208
dirs_count: '0'
12131209
size_count: '0'

0 commit comments

Comments
 (0)