Skip to content
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

Merged
merged 6 commits into from
May 5, 2023

Conversation

CindyvdVries
Copy link
Collaborator

No description provided.

Copy link
Contributor

@IoannaMi IoannaMi left a 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):
Copy link
Contributor

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():
Copy link
Contributor

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, \
Copy link
Contributor

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

@CindyvdVries CindyvdVries merged commit 8d6632c into main May 5, 2023
@CindyvdVries CindyvdVries deleted the feature/DEI-85/parser-formula-rule branch May 5, 2023 06:33
@CindyvdVries CindyvdVries restored the feature/DEI-85/parser-formula-rule branch May 26, 2023 07:12
@CindyvdVries CindyvdVries deleted the feature/DEI-85/parser-formula-rule branch May 26, 2023 07:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants