Skip to content

Commit

Permalink
Added back message
Browse files Browse the repository at this point in the history
  • Loading branch information
Singha22 committed Jan 27, 2025
1 parent cc27af4 commit b18f515
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion moto/securityhub/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,8 @@ def batch_import_findings(
or len(finding_data["Resources"]) == 0
):
raise InvalidInputException(

Check warning on line 149 in moto/securityhub/models.py

View check run for this annotation

Codecov / codecov/patch

moto/securityhub/models.py#L149

Added line #L149 was not covered by tests
"Finding must contain at least one resource in the Resources array",
op="BatchImportFindings",
msg="Finding must contain at least one resource in the Resources array",
)

finding_id = finding_data["Id"]
Expand Down

0 comments on commit b18f515

Please sign in to comment.