-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix false negative results, add more tests (#9)
* Increase verbosity of CI tests * Add pickle and integration tests * Workaround missing readline issue on Windows * Add Jupyter requirement for integration tests * Fix the tests not failing (ipython not returning the correct exit status) * Install cairo on Mac * Attempt to fix file permission error on Windows See https://stackoverflow.com/a/51126234/6646912 * Add pycairo pip install for Mac * Use raw string for pickle path to protect from issues on Windows https://stackoverflow.com/a/46011113/6646912 * Narrow down coverage scope * Remove outdated TODO note * Try to figure out the problem with Windows * Try with older version of ffmpeg on Windows * Try with conda * Add conda to path? * Manually add to path * Try with ffmpeg provided by imagemagick.app * Trying in blind * Give up, allow failures on Windows
- Loading branch information
1 parent
2223493
commit 6c85c74
Showing
5 changed files
with
128 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import sys | ||
from IPython.core.interactiveshell import InteractiveShell | ||
from IPython import start_ipython | ||
import runpy | ||
|
||
|
||
def run_module(self, mod_name, where): | ||
where.update( | ||
runpy.run_module( | ||
str(mod_name), run_name="__main__", | ||
alter_sys=True | ||
) | ||
) | ||
|
||
|
||
InteractiveShell.safe_run_module = run_module | ||
|
||
result = start_ipython(['-m', 'pytest', '--'] + sys.argv[1:]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
pytest==5.3.0 | ||
pytest-cov==2.5.1 | ||
codecov | ||
papermill | ||
jupyter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters