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

skip video editor test without numpy / move numpy import to when it is needed / list numpy as test dependency #1639

Merged
merged 2 commits into from
May 3, 2021

Conversation

aaronayres35
Copy link
Contributor

closes #1636

This PR does a number of things. It moves the import numpy as np statement from the top of the module to inside the __init__ method so it is only imported when needed. It skips the video editor tests when numpy is not installed. (both of these follow exactly was it done for the DataFrameEditor.

Lastly, I added numpy as a test dependency in extras_require. My understanding was that if I do pip install -e .[test] I should have all the deps needed to run every test in the test suite

@aaronayres35 aaronayres35 changed the title skip video editor test without numpy, move numpy import to when it is… skip video editor test without numpy / move numpy import to when it is needed / list numpy as test dependency May 3, 2021
Copy link
Contributor

@rahulporuri rahulporuri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This works fine.

@aaronayres35 aaronayres35 merged commit 6bb4f75 into master May 3, 2021
@aaronayres35 aaronayres35 deleted the skip-tests-no-numpy branch May 3, 2021 17:49
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.

Test test_video_editor_basics should be skipped when NumPy is absent
2 participants