Skip to content

Commit

Permalink
fix notebook unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
sdpython committed Aug 15, 2017
1 parent 5f718b8 commit e9de8e1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/code_beatrix/automation/notebook_test_helper.py
Expand Up @@ -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.