-
Notifications
You must be signed in to change notification settings - Fork 4
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
feat: Raise error for unknown keywords #632
feat: Raise error for unknown keywords #632
Conversation
…tionManager and update notification layout for file loading
# Conflicts: # hydrolib/core/dflowfm/ini/models.py
After the update to throw an error on an unknown key multiple test started to fail.
This is what I have found in regard to the keywords in relation with the tests, I tried to tackle all keywords but I am not 100% sure I have them all.
Action points for issue
|
In #634 I wanted to add this test: def test_load_model_with_research_keywords_as_fmmodel_raises_error(self):
input_mdu = (
test_input_dir / "research" / "mdu_with_research_keywords_from_dia_file_2024.03_release.mdu"
)
with pytest.raises(ValueError) as e:
_ = FMModel(filepath=input_mdu)
expected_error = "Unknown keywords are detected in section"
assert expected_error in str(e.value) But it currently fails, since we have |
This doesn't work for unknown sections, right? Should you create a follow-up issue for this? |
Quality Gate passedIssues Measures |
#622