diff --git a/dojo/tools/tenable/xml_format.py b/dojo/tools/tenable/xml_format.py index f323bcc4f43..7fe466507f4 100644 --- a/dojo/tools/tenable/xml_format.py +++ b/dojo/tools/tenable/xml_format.py @@ -219,8 +219,7 @@ def get_findings(self, filename: str, test: Test) -> list: cvssv3_score = cvssv3_score_element_text cvss = self.safely_get_element_text(item.find("cvss3_base_score")) - if cvss != None: - print(cvss) + if cvss is not None: severity = self.get_cvss_severity(cvss) # Determine the current entry has already been parsed in diff --git a/unittests/tools/test_tenable_parser.py b/unittests/tools/test_tenable_parser.py index 491dddf709a..5d46fa06f9c 100644 --- a/unittests/tools/test_tenable_parser.py +++ b/unittests/tools/test_tenable_parser.py @@ -53,7 +53,6 @@ def test_parse_some_findings_csv_nessus_legacy(self): self.assertEqual("CVE-2004-2761", finding.unsaved_vulnerability_ids[0]) # this vuln have 'CVE-2013-2566,CVE-2015-2808' as CVE finding = findings[3] - print(f"finding.unsaved_vulnerability_ids: {finding.unsaved_vulnerability_ids} - {type(finding.unsaved_vulnerability_ids)} - {type(finding.unsaved_vulnerability_ids[0])}") self.assertEqual(2, len(finding.unsaved_vulnerability_ids)) self.assertEqual("CVE-2013-2566", finding.unsaved_vulnerability_ids[0]) self.assertEqual("CVE-2015-2808", finding.unsaved_vulnerability_ids[1])