-
Notifications
You must be signed in to change notification settings - Fork 0
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
Feature/dei 85/parser formula rule #28
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.
Looks good! Only two comments.
description, | ||
) | ||
|
||
def _validate_formula(self, formula: str): |
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 do it similar as the other cases where if we received something that is not float or int we show to the message also the type that we received? perhaps also in the combine results rule we could do the same. What do you think?
from decoimpact.data.entities.formula_rule_data import FormulaRuleData | ||
|
||
|
||
def test_combine_results_rule_data_creation_logic(): |
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 be: test_formula_rule_data_creation_logic
exception_raised = exc_info.value | ||
|
||
# Assert | ||
expected_message = f"""Formula must be a string, \ |
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.
Similar questiona as previous comment related to the type
No description provided.