File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 8
8
from nbclient .exceptions import CellExecutionError
9
9
from nbconvert .preprocessors import ExecutePreprocessor
10
10
11
+ TEST_TIMEOUT = 1200
12
+
11
13
12
14
def list_notebooks (directory : str ) -> list :
13
15
"""Return sorted list of all notebooks in a directory."""
@@ -25,7 +27,7 @@ def test_tutorials(notebook_path):
25
27
"""Test that all notebooks in the tutorials directory can be executed."""
26
28
with open (notebook_path ) as f :
27
29
nb = nbformat .read (f , as_version = 4 )
28
- ep = ExecutePreprocessor (timeout = 600 , kernel_name = 'python3' )
30
+ ep = ExecutePreprocessor (timeout = TEST_TIMEOUT , kernel_name = 'python3' )
29
31
print (f"Executing notebook { notebook_path } " )
30
32
try :
31
33
ep .preprocess (nb , {'metadata' : {'path' : os .path .dirname (notebook_path )}})
You can’t perform that action at this time.
0 commit comments