chore(scan): Remove ._findings (#6667)

This commit is contained in:
Pepe Fagoaga
2025-01-23 20:43:02 +05:45
parent 0ceae8361b
commit 66e8f0ce18
2 changed files with 0 additions and 9 deletions
-8
View File
@@ -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:
-1
View File
@@ -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(