Skip to content
Permalink
Browse files

update finalize of notebook testing

  • Loading branch information...
sdpython committed Aug 14, 2017
1 parent 7e29c61 commit 029e911e60aa091bf5b040445670a33974784fe1
Showing with 2 additions and 12 deletions.
  1. +2 −12 _unittests/ut_documentation/test_run_notebooks.py
@@ -78,18 +78,8 @@ def valid(cell):
# run the notebooks
res = execute_notebook_list(
temp, keepnote, fLOG=fLOG, valid=valid, additional_path=addpaths, kernel_name=kernel_name)

# final checkings
self.assertTrue(len(res) > 0)
fails = [(os.path.split(k)[-1], v)
for k, v in sorted(res.items()) if not v[0]]
for f in fails:
fLOG(f)
for k, v in sorted(res.items()):
name = os.path.split(k)[-1]
fLOG(name, v[0], v[1])
if len(fails) > 0:
raise fails[0][1][-1]
execute_notebook_list_finalize_ut(
res, fLOG=fLOG, dump=src.project_name)


if __name__ == "__main__":

0 comments on commit 029e911

Please sign in to comment.
You can’t perform that action at this time.