Skip to content

Commit

Permalink
coverage test
Browse files Browse the repository at this point in the history
  • Loading branch information
danipv committed May 10, 2024
1 parent 8b1a15e commit 45de7f6
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions Packs/VirusTotal/Integrations/VirusTotalV3/VirusTotalV3.py
Original file line number Diff line number Diff line change
Expand Up @@ -851,17 +851,10 @@ def is_preferred_vendors_pass_malicious(self, analysis_results: dict) -> bool:
item for item in preferred_vendor_scores.values() if item.get('category') == 'malicious'
]
if len(malicious_trusted_vendors) >= self.trusted_vendors_threshold:
self.logs.append(
f'{len(malicious_trusted_vendors)} trusted vendors found the hash malicious. \n'
f'The trusted vendors threshold is {self.trusted_vendors_threshold}. \n'
f'Malicious check: {(len(malicious_trusted_vendors) >= self.trusted_vendors_threshold)=}. '
)

return True
else:
self.logs.append(
f'Those preferred vendors found the hash malicious: {malicious_trusted_vendors}. '
f'They do not pass the threshold {self.trusted_vendors_threshold}. '
)

return False

def is_malicious_by_threshold(self, analysis_stats: dict, threshold: int) -> bool:
Expand Down

0 comments on commit 45de7f6

Please sign in to comment.