- 
                Notifications
    You must be signed in to change notification settings 
- Fork 1
DSDE-121/DSDE-152 Add the quality tests into the toolbox #191
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
base: main
Are you sure you want to change the base?
Conversation
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.
Hola!
I had a small look -- I dont have a lot to add...
Thanks for the work Dalmas :)
| @@ -0,0 +1,248 @@ | |||
| import inspect | |||
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 we add an init file?
| """ | ||
| raise Exception(exception_message) | ||
|  | ||
| logger.info("Data passed validation check.") | 
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.
Maybe it makes more sense to use OpenHexa logger (so, use current_run.log_info() instead of the logger.info() one)
This way, we can see the logs nicely on OH
|  | ||
| return expectations | ||
|  | ||
| def validate_expectations(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.
This function is very nice!
But, in my head, we are going to iteratively improve it, adding more checks
So maybe it makes sense to divide it up a bit to start with?
So that we don't end up with a huge function including all of the validations that is very hard to read/debug/improve
Ticket: https://bluesquare.atlassian.net/jira/software/projects/DSDE/boards/338?selectedIssue=DSDE-167