mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-07-24 21:11:53 +00:00
chore(scan): Remove ._findings (#6667)
This commit is contained in:
@@ -36,7 +36,6 @@ class Scan:
|
||||
_service_checks_to_execute: dict[str, set[str]]
|
||||
_service_checks_completed: dict[str, set[str]]
|
||||
_progress: float = 0.0
|
||||
_findings: list = []
|
||||
_duration: int = 0
|
||||
_status: list[str] = None
|
||||
|
||||
@@ -216,10 +215,6 @@ class Scan:
|
||||
def duration(self) -> int:
|
||||
return self._duration
|
||||
|
||||
@property
|
||||
def findings(self) -> list:
|
||||
return self._findings
|
||||
|
||||
def scan(
|
||||
self,
|
||||
custom_checks_metadata: dict = {},
|
||||
@@ -282,9 +277,6 @@ class Scan:
|
||||
if finding.status not in self._status:
|
||||
check_findings.remove(finding)
|
||||
|
||||
# Store findings
|
||||
self._findings.extend(check_findings)
|
||||
|
||||
# Remove the executed check
|
||||
self._service_checks_to_execute[service].remove(check_name)
|
||||
if len(self._service_checks_to_execute[service]) == 0:
|
||||
|
||||
@@ -333,7 +333,6 @@ class TestScan:
|
||||
assert scan.service_checks_completed == {
|
||||
"accessanalyzer": {"accessanalyzer_enabled"},
|
||||
}
|
||||
assert scan.findings == mock_execute.side_effect()
|
||||
mock_logger.error.assert_not_called()
|
||||
|
||||
def test_init_invalid_severity(
|
||||
|
||||
Reference in New Issue
Block a user