-
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 24 tests for parser #7
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.
Review ok, but maybe have a look at the comments
IModelData: _description_ | ||
""" | ||
"""Parse the Yaml input file into a data object""" | ||
print('contennts', contents) |
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.
print statement can be removed
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.
Do we need to add a description for the parameter ?
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.
check, added it. Have now on multiple locations a default for the description.
print statement removed
|
||
# Assert | ||
expected_message = "Missing element multipliers" | ||
assert exception_raised.args[0] == expected_message |
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.
Do we also want a test for invalid data in the multipliers -> like "multipliers": "abc", or "multipliers": [0.0, "abc"]
Do we need to check for duplicate keys ?
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.
dict can never have duplicate keys, so this will never occurs. When yaml is loaded this already filtered out. Don't think we need to check that.
Added a Valueerror when the multipliers are not a list of floats.
No description provided.