-
Notifications
You must be signed in to change notification settings - Fork 62
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
Pressure Changer and Coag & Floc Test Harness #1363
Pressure Changer and Coag & Floc Test Harness #1363
Conversation
with pytest.raises(ConfigurationError, match=re.escape(error_msg)): | ||
model.fs.properties = NaClParameterBlock() | ||
model.fs.unit = CoagulationFlocculation( | ||
property_package=model.fs.properties | ||
) | ||
|
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.
Where are we maintaining the checks on ConfigurationError and other expected exception handling? Is that part of the test harness?
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.
Yea, my comment was also going to be to re-add this in. I just appended mine at the end of GAC after the harness. Thoughts if that is the best implementation?
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.
Seems like a good implementation to me. I've addressed this in the latest commit.
@lbianchi-lbl Maybe I am missing it, but I am not seeing the codecov checks here. Do codecov checks not run if the only changed files are test files? I wanted to check to see if test coverage decreased or not with this PR. |
@adam-a-a thanks for bringing this up.
EDIT it looks like restarting the job didn't help. I'll try to have a PR up first thing tomorrow. |
I'd prefer to review this with the codecov for context (since largely this is minor change assuming the coverage is equivalent). Maybe @lbianchi-lbl can you just update the team when that gets resolved? |
#1365 should address this, so feel free to leave a review to get it merged. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1363 +/- ##
==========================================
- Coverage 93.83% 93.82% -0.01%
==========================================
Files 338 338
Lines 35354 35354
==========================================
- Hits 33174 33172 -2
- Misses 2180 2182 +2 ☔ View full report in Codecov by Sentry. |
@adam-a-a @hunterbarber FYI: I realized I've made a mistake in the Codecov configuration in #1365, which causes the Codecov comment to erroneously report a 50% drop in coverage because the comment is created before all uploading jobs have run. This should be fixed by #1366. EDIT the Codecov comment now seems to be working properly: |
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.
LGTM after re-adding the logging coverage. Maybe we want to add a way to test error and warning logs in the test harness, but lets save that for when I also add the costing checks into the harness (not 1.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.
LGTM
Fixes/Resolves:
#1302
Legal Acknowledgement
By contributing to this software project, I agree to the following terms and conditions for my contribution: