Skip to content
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

Cleanup tests, make helpers accessible #219

Merged
merged 6 commits into from Nov 13, 2019

Conversation

JelleAalbers
Copy link
Member

@JelleAalbers JelleAalbers commented Nov 12, 2019

This cleans up strax' test helpers file, which contains mainly hypothesis strategies for making random records and peaks for testing data processing routines.

There are now no side effects from importing it -- in particular, we no longer mock numba for performance during tests. This makes the tests take slightly longer, but only if the compilation cache is not present (e.g. on Travis or after changes). Since we use numba in production we should clearly also test with it. Also, since numba is considering using strax as an integration test (numba/numba-integration-testing#29) I'm sure they would appreciate if we don't replace sys.modules['numba'] with a MagicMock...

The test helpers file is made accessible as strax.testutils, since some of the functions defined in it could be useful in writing tests for straxen.

@JelleAalbers
Copy link
Member Author

JelleAalbers commented Nov 13, 2019

The coverage drop is due to the numba-jitted functions being missed in the coverage computation. I disabled jitting in one of the matrix builds and am now submitting coverage only for that, but this does not seem to work either (at least not yet).

I also added a python 3.8 build, which is failing at the moment due to some llvm build issue.

@JelleAalbers JelleAalbers merged commit 704a772 into AxFoundation:master Nov 13, 2019
@JelleAalbers JelleAalbers deleted the available_helpers branch November 13, 2019 12:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant