-
Notifications
You must be signed in to change notification settings - Fork 7
Fix petablint for v2 problems #432
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
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #432 +/- ##
==========================================
- Coverage 74.82% 74.81% -0.02%
==========================================
Files 62 62
Lines 6764 6765 +1
Branches 1195 1195
==========================================
Hits 5061 5061
- Misses 1251 1252 +1
Partials 452 452 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
394664b to
28e129e
Compare
| problem.to_files(Path(tmpdir)) | ||
|
|
||
| result = subprocess.run(["petablint", str(Path(tmpdir, "problem.yaml"))]) # noqa: S603,S607 | ||
| assert result.returncode == 0 |
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.
Fine as is, but I would normally opt for asserting that more specific output is the same, rather than something that might be coincidentally the same, like a return code of 0. e.g. see the same error in problem.validate and result.
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.
Here it's specifically to check that there is no uncaught exception. This feels sufficient and avoids having to update the test if some message changes.
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.
OK, looks good then. Could add that to the description or test name.
Skip `validate_yaml_semantics` for PEtab v2. Those errors will be caught elsewhere. Closes PEtab-dev#428.
c24e1ca to
8cf8970
Compare
Skip
validate_yaml_semanticsfor PEtab v2. Those errors will be caught elsewhere.Closes #428.