Permalink
Browse files

specify a specific kernel before unittesting the notebooks (offline run)

  • Loading branch information...
sdpython committed Aug 19, 2015
1 parent c860fc9 commit a6d8e4bf9ddff043ea410253c12396d30944fa99
Showing with 4 additions and 2 deletions.
  1. +4 −2 src/code_beatrix/automation/notebook_test_helper.py
@@ -5,7 +5,7 @@
"""
import os
from pyquickhelper import noLOG
from pyquickhelper.ipythonhelper.notebook_helper import run_notebook
from pyquickhelper.ipythonhelper.notebook_helper import run_notebook, install_python_kernel_for_unittest
def ls_notebooks(subfolder):
@@ -135,6 +135,7 @@ def valid_cell(cell):
return False
return True
kernel_name = install_python_kernel_for_unittest("code_beatrix")
addpath = get_additional_paths()
results = {}
for i, note in enumerate(notebooks):
@@ -146,7 +147,8 @@ def valid_cell(cell):
additional_path=addpath,
valid=valid_cell,
clean_function=clean_function,
fLOG=deepfLOG
fLOG=deepfLOG,
kernel_name=kernel_name
)
if not os.path.exists(outfile):
raise FileNotFoundError(outfile)

0 comments on commit a6d8e4b

Please sign in to comment.