File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 54
54
- NOSE=
55
55
- NUMPY=numpy
56
56
- PANDAS=
57
+ - JUPYTER=
57
58
- PYPARSING=pyparsing
58
59
- PYTEST='pytest>=3.4'
59
60
- PYTEST_COV=pytest-cov
@@ -94,6 +95,7 @@ matrix:
94
95
env :
95
96
- DELETE_FONT_CACHE=1
96
97
- PANDAS='pandas<0.21.0'
98
+ - JUPYTER='jupyter'
97
99
- PYTEST_PEP8=pytest-pep8
98
100
- PYTEST_ADDOPTS="$PYTEST_ADDOPTS --pep8"
99
101
- python : " nightly"
@@ -147,6 +149,7 @@ install:
147
149
$NOSE \
148
150
$NUMPY \
149
151
$PANDAS \
152
+ $JUPYTER \
150
153
pillow \
151
154
$PYPARSING \
152
155
$SPHINX \
Original file line number Diff line number Diff line change 2
2
import os
3
3
import subprocess
4
4
import tempfile
5
- import nbformat
5
+ import pytest
6
6
7
+ nbformat = pytest .importorskip ('nbformat' )
7
8
8
9
# From https://blog.thedataincubator.com/2016/06/testing-jupyter-notebooks/
9
10
11
+
10
12
def _notebook_run (nb_file ):
11
13
"""Execute a notebook via nbconvert and collect output.
12
14
:returns (parsed nb object, execution errors)
You can’t perform that action at this time.
0 commit comments