Skip to content

Commit

Permalink
helpers: raise AssertionError
Browse files Browse the repository at this point in the history
Tests will fail with AssertionError, not just write the error to the log.

Signed-off-by: Oleg Kulachenko <[email protected]>
  • Loading branch information
vvarg229 committed Sep 3, 2023
1 parent 8e2aedd commit 6852478
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytest_tests/helpers/s3_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,4 +157,4 @@ def assert_s3_acl(acl_grants: list, permitted_users: str):
permission = acl_grant.get("Permission")
assert permission == "FULL_CONTROL", "Only CanonicalUser should have FULL_CONTROL"
else:
logger.error("FULL_CONTROL is given to All Users")
raise AssertionError("FULL_CONTROL is given to All Users")

0 comments on commit 6852478

Please sign in to comment.