-
Notifications
You must be signed in to change notification settings - Fork 56
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 fixed_time_pickoff
unit test
#399
Add fixed_time_pickoff
unit test
#399
Conversation
Hi Sam, I fully agree we should test processors with NumPy arrays! Let's discuss test coverage with Numba in #241. |
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.
Looks good! For these kinds of tests that are checking multiple different functionalities, it might be nice to have a list of the tests performed in the docstring or something like that. Having it all in one place I think will make it easier to see if there is anything missing.
Can you also test the __wrapped__
suggestion from #241, and see if that triggers the coverage of this function?
@iguinn I can add a commit where I quickly explain the tests in the docstring, but wanted to check what people thought about how we want to use the Also, I looked at the code coverage job, and it looked like it actually failed at the "Upload Coverage to codecov.io" step, but the job is marked as successful (see error at bottom of this reply). We might need to figure out a way to mark this is a failure and have the workflow be re-run. Maybe @gipert can take a look?
|
53d2f55
to
c916660
Compare
These upload failures seem to occur with tokenless uploads: codecov/codecov-action#557 (comment) It should be fixed now. The CI will fail if uploading fails, from now on. Let's wee whether the Codecov bot shows up now. |
Ok, the token does not work for forks. Those can only rely on tokenless uploads, which can fail sometimes and there's nothing we can do about it. Codecov devs will hopefully address the issue in the future. |
I wrote a simple unit test for all of the various cases of
fixed_time_pickoff
, and added it to the testing suite. I have a couple of questions before marking this as ready to review.I'm happy to start working through other tests as needed, but just want to make sure I understand the test writing conventions before going through more!
EDIT: I also accidentally created this branch off of the one in #394, so that should be merged before this.
Before submitting a pull request, please make sure you've read and understood the pygama developer's guide: https://pygama.readthedocs.io/en/latest/developer.html. In particular, do not forget to: