File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change 12
12
from importlib .util import find_spec
13
13
14
14
import jsonschema
15
+ import nbformat
15
16
import pytest
17
+ from nbconvert .preprocessors import ExecutePreprocessor
16
18
17
19
try :
18
20
import ruamel .yaml as yaml
@@ -87,9 +89,16 @@ def the_meta_package():
87
89
88
90
@pytest .fixture (scope = "module" )
89
91
def the_installation_notebook ():
90
- """ loads up the installation notebook
92
+ """ executes and loads up the installation notebook
91
93
"""
92
- return (DOCS / "Installation.ipynb" ).read_text ()
94
+ with open (DOCS / "Installation.ipynb" ) as f :
95
+ installation_nb = nbformat .read (f , as_version = 4 )
96
+ executor = ExecutePreprocessor (timeout = 600 )
97
+
98
+ # modifies notebook in-place
99
+ executor .preprocess (installation_nb , {"metadata" : {"path" : DOCS }})
100
+
101
+ return nbformat .writes (installation_nb )
93
102
94
103
95
104
@pytest .mark .parametrize (
You can’t perform that action at this time.
0 commit comments