Permalink
Browse files

fix notebook unit test

  • Loading branch information...
sdpython committed Aug 15, 2017
1 parent 5f718b8 commit e9de8e1b99e62d730571ebcc624b39dda8f51c4e
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/code_beatrix/automation/notebook_test_helper.py
@@ -142,5 +142,9 @@ def valid_cell(cell):
kernel_name = None if "travis" in sys.executable else install_python_kernel_for_unittest(
"code_beatrix")
addpaths = get_additional_paths()
if filter:
notebooks = [_ for i, _ in enumerate(notebooks) if filter(i, _)]
if len(notebooks) == 0:
raise ValueError("Empty list of notebooks.")
return execute_notebook_list(
folder, notebooks, fLOG=fLOG, valid=valid_cell, additional_path=addpaths, kernel_name=kernel_name)

0 comments on commit e9de8e1

Please sign in to comment.