-
Notifications
You must be signed in to change notification settings - Fork 16
Introduce a "validation report" into the validation suite #589
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…o validation_report
validator/delphi_validator/report.py
Outdated
suppressed_errors: List[Exception] | ||
Errors raised from validation failures not found in `self.errors_to_suppress` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be unsuppressed errors? Since it's errors that are not in the ignore list.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, done.
""" | ||
self.raised_warnings.append(warning) | ||
|
||
def __str__(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a test that this formats to what we expect
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added tests for the whole report class
…o validation_report
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Description
Introduce a "validation report" object to the validation suite. This report handles the aggregation, printing, and interpretation of the errors raised by the various validation checks.
This not only separates the logic of aggregating the errors from the code that performs the checks but also should allow us to split out the validation checks into separate classes, using the report as an interface between them.
This includes changes introduced in #578 so it should not be reviewed until after that is merged.
Changelog
delphi_validation.report.ValidationReport
to track the results of validationValidationReport