@@ -333,26 +333,51 @@ def make_mock_response(url, content=b"\x00", status_code=200, headers=None):
333333 "label" : "Prohibited License" ,
334334 "compliance_alert" : "error" ,
335335 },
336+ {
337+ "license_key" : "OFL-1.1" ,
338+ "compliance_alert" : "warning" ,
339+ },
340+ {
341+ "license_key" : "LicenseRef-scancode-public-domain" ,
342+ "compliance_alert" : "ok" ,
343+ },
344+ {
345+ "license_key" : "LicenseRef-scancode-unknown-license-reference" ,
346+ "compliance_alert" : "error" ,
347+ },
336348]
337349
350+
338351global_policies = {
339352 "license_policies" : license_policies ,
340353}
341354
342355license_policies_index = {
343- "gpl-3.0" : {
344- "compliance_alert" : "error" ,
345- "label" : "Prohibited License" ,
346- "license_key" : "gpl-3.0" ,
347- },
348356 "apache-2.0" : {
349- "compliance_alert" : "" ,
350- "label" : "Approved License" ,
351357 "license_key" : "apache-2.0" ,
358+ "label" : "Approved License" ,
359+ "compliance_alert" : "" ,
352360 },
353361 "mpl-2.0" : {
354- "compliance_alert" : "warning" ,
355- "label" : "Restricted License" ,
356362 "license_key" : "mpl-2.0" ,
363+ "label" : "Restricted License" ,
364+ "compliance_alert" : "warning" ,
365+ },
366+ "gpl-3.0" : {
367+ "license_key" : "gpl-3.0" ,
368+ "label" : "Prohibited License" ,
369+ "compliance_alert" : "error" ,
370+ },
371+ "OFL-1.1" : {
372+ "license_key" : "OFL-1.1" ,
373+ "compliance_alert" : "warning" ,
374+ },
375+ "LicenseRef-scancode-public-domain" : {
376+ "license_key" : "LicenseRef-scancode-public-domain" ,
377+ "compliance_alert" : "ok" ,
378+ },
379+ "LicenseRef-scancode-unknown-license-reference" : {
380+ "license_key" : "LicenseRef-scancode-unknown-license-reference" ,
381+ "compliance_alert" : "error" ,
357382 },
358383}
0 commit comments