ComplianceAsCode / auditree-framework

The Auditree framework tool to run compliance control checks as unit tests.
https://auditree.github.io/
Apache License 2.0
59 stars 23 forks source link

Fix notifier counts for single checks #152

Closed cletomartin closed 1 year ago

cletomartin commented 1 year ago

What

For those checks that only have one check_ method, the current code didn't show up correctly the number of errors/warnings correctly.

Why

It wasn't working as expected.

How

Do not make a special case when calculating the message structure.

Test

Passing unit tests and update demo to ensure that this also happens.