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
Add passed function to suite result #1594
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.
See comment about check devision
deepchecks/core/check_result.py
Outdated
@@ -161,9 +161,9 @@ def have_display(self) -> bool: | |||
"""Return if this check has display.""" | |||
return bool(self.display) | |||
|
|||
def passed_conditions(self) -> bool: | |||
def passed_conditions(self, fail_on_warning=True) -> bool: |
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.
IMO fail on warning should be default False
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.
return self.select_results(self.failures) | ||
|
||
def get_checks_not_passed(self, fail_on_warning=True) -> List[CheckResult]: | ||
"""Get all the check results that have not passing condition. |
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.
Not sure about this devision, where do checks without conditions go?
Maybe do this in the same devision as the new suite output: pass, fail, didnt run, other(/ checks without conditions)
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 division is just for the passed function, checks without condition are not relevant
resolve #1591
resolve #1589