Closed fitzoh closed 2 years ago
This would be helpful. I agree the workaround is a bit awkward.
Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.
Description
Add
has_no_error
,has_no_warning
, andhas_no_info
methods to the Annotations assertions toolkit.Use Case
I'm testing some EC2 constructs and lettings users pass in block volumes, adding errors if any volumes are unencrypted.
The test for something that produces an error is easy:
The test for a value that doesn't produce an error is awkward:
I would like to easily assert that there are no errors in the stack
Proposed Solution
Add a
has_no_error
method next to thehas_error
andfind_error
methods (as well asinfo
andwarning
variants).Other information
No response
Acknowledge