@@ -1216,7 +1216,7 @@ def test_scanpipe_management_command_check_compliance(self):
12161216 def test_scanpipe_management_command_check_clarity_compliance_only (self ):
12171217 project = make_project (name = "my_project_clarity" )
12181218
1219- project .extra_data = {"clarity_compliance_alert " : "error" }
1219+ project .extra_data = {"license_clarity_compliance_alert " : "error" }
12201220 project .save (update_fields = ["extra_data" ])
12211221
12221222 out = StringIO ()
@@ -1226,7 +1226,7 @@ def test_scanpipe_management_command_check_clarity_compliance_only(self):
12261226 self .assertEqual (cm .exception .code , 1 )
12271227 out_value = out .getvalue ().strip ()
12281228 expected = (
1229- "1 compliance issues detected.\n [License Clarity ]\n > Alert Level: error "
1229+ "1 compliance issues detected.\n [license clarity ]\n > Alert Level: ERROR "
12301230 )
12311231 self .assertEqual (expected , out_value )
12321232
@@ -1238,7 +1238,7 @@ def test_scanpipe_management_command_check_both_compliance_and_clarity(self):
12381238 package_url = "pkg:generic/[email protected] " ,
12391239 compliance_alert = CodebaseResource .Compliance .ERROR ,
12401240 )
1241- project .extra_data = {"clarity_compliance_alert " : "warning" }
1241+ project .extra_data = {"license_clarity_compliance_alert " : "warning" }
12421242 project .save (update_fields = ["extra_data" ])
12431243
12441244 out = StringIO ()
@@ -1250,7 +1250,7 @@ def test_scanpipe_management_command_check_both_compliance_and_clarity(self):
12501250 expected = (
12511251 "2 compliance issues detected."
12521252 "\n [packages]\n > ERROR: 1"
1253- "\n [License Clarity ]\n > Alert Level: warning "
1253+ "\n [license clarity ]\n > Alert Level: WARNING "
12541254 )
12551255 self .assertEqual (expected , out_value )
12561256
0 commit comments