Permalink
Browse files

automatisation des tests unitaires

  • Loading branch information...
sdpython committed May 17, 2015
1 parent 5b6249b commit 587c803cd11cc403eb8cde693c9ce1b3727494be
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/code_beatrix/automation/notebook_test_helper.py
@@ -163,11 +163,11 @@ def unittest_raise_exception_notebook(res, fLOG):
@param res output of @see fn execute_notebooks
"""
assert len(res) > 0
fails = [(os.path.split(k)[-1], v[0], v[1])
fails = [(os.path.split(k)[-1], ) + v
for k, v in sorted(res.items()) if not v[0]]
for f in fails:
fLOG(f)
if len(fails) > 0:
raise fails[0][1][-1]
raise fails[0][-1]
for k, v in sorted(res.items()):
fLOG("final", os.path.split(k)[-1], v[0], v[1])

0 comments on commit 587c803

Please sign in to comment.