Skip to content

Commit

Permalink
ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
manuel-sommer committed Mar 30, 2024
1 parent f5462ad commit b319e15
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions unittests/tools/test_sonarqube_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ def test_detailed_parse_json_file_with_multiple_vulnerabilities_has_multiple_fin
self.assertEqual(6, len(findings))

def test_parse_json_file_from_api_with_multiple_findings_json(self):
my_file_handle, product, engagement, test = self.init(
my_file_handle, _product, _engagement, test = self.init(
get_unit_tests_path() + "/scans/sonarqube/findings_over_api.json"
)
parser = SonarQubeParser()
Expand Down Expand Up @@ -581,7 +581,7 @@ def test_parse_json_file_from_api_with_multiple_findings_json(self):
self.assertIsNone(item.component_version)

def test_parse_json_file_from_api_with_multiple_findings_hotspots_json(self):
my_file_handle, product, engagement, test = self.init(
my_file_handle, _product, _engagement, test = self.init(
get_unit_tests_path() + "/scans/sonarqube/findings_over_api_hotspots.json"
)
parser = SonarQubeParser()
Expand All @@ -599,23 +599,23 @@ def test_parse_json_file_from_api_with_multiple_findings_hotspots_json(self):
self.assertEqual("Low", item.severity)

def test_parse_json_file_from_api_with_empty_json(self):
my_file_handle, product, engagement, test = self.init(
my_file_handle, _product, _engagement, test = self.init(
get_unit_tests_path() + "/scans/sonarqube/findings_over_api_empty.json"
)
parser = SonarQubeParser()
findings = parser.get_findings(my_file_handle, test)
self.assertEqual(0, len(findings))

def test_parse_json_file_from_api_with_emppty_zip(self):
my_file_handle, product, engagement, test = self.init(
my_file_handle, _product, _engagement, test = self.init(
get_unit_tests_path() + "/scans/sonarqube/empty_zip.zip"
)
parser = SonarQubeParser()
findings = parser.get_findings(my_file_handle, test)
self.assertEqual(0, len(findings))

def test_parse_json_file_from_api_with_multiple_findings_zip(self):
my_file_handle, product, engagement, test = self.init(
my_file_handle, _product, _engagement, test = self.init(
get_unit_tests_path() + "/scans/sonarqube/findings_over_api.zip"
)
parser = SonarQubeParser()
Expand Down

0 comments on commit b319e15

Please sign in to comment.