-
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
add test for assert sample and rtype #341
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #341 +/- ##
==========================================
+ Coverage 92.91% 93.23% +0.32%
==========================================
Files 39 39
Lines 917 917
==========================================
+ Hits 852 855 +3
+ Misses 65 62 -3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
This is a helper function, and I'm unsure how much it is used across the package. Should this be somehow enforced in every model/RV that received RVs? |
It seems the usage is split between using
Deferring the more general question of enforcing this in every model/RV to @damonbayer @dylanhmorris |
Can we keep |
Right now, we are using |
@sbidari I am suggesting that we separate "checking that something is a random variable" from "checking that the random variable is valid." |
ok! I will create a new issue for extending the use of Marking the tests as ready for review. |
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.
@sbidari let me know if you want to make the changes I suggested. They are very minor and this could be merged without the changes.
@damonbayer I tried following the pattern in other tests and do not feel strongly about the match strings. I think it's probably better not importing additional packages unless necessary, will change to remove importing |
This PR attempts to add tests to
_assert_sample_and_rtype
function defined asTests included
None
if(rp is None) and (skip_if_none)
(rp is None) and (not skip_if_none)
rp
is a validRandomVariable