Skip to content

Commit

Permalink
fix(general): add print to random test (#6229)
Browse files Browse the repository at this point in the history
* add print to random test

* .

* .
  • Loading branch information
achiar99 authored May 2, 2024
1 parent b26df47 commit 9378569
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dangerfile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ async function alertPublicInterfaces() {
if (changedFile.endsWith("report_types.py")) {
fail("You've changed `report_types.py` file, that contains the contract for checkov input and output. Make sure to stay backwards compatible.")
}
if (changedFile.endsWith("report.py")) {
if (changedFile.endsWith("report.py") && !changedFile.includes("test")) {
fail("You've changed `report.py` file, that contains the contract for checkov input and output. Make sure to stay backwards compatible.")
}
}
Expand Down
1 change: 1 addition & 0 deletions integration_tests/test_checkov_cli_integration_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ def test_workflow_report_api_key(self):
if sys.version_info[1] == 8 and platform.system() == 'Linux':
with open(report_path, encoding='utf-8') as f:
reports = json.load(f)
print(reports)
self.assertGreaterEqual(len(reports), 2,
"expecting to have 2 reports at least, github_Actions and sca_image")
github_actions_report_exists = False
Expand Down

0 comments on commit 9378569

Please sign in to comment.