diff --git a/binarycpython/tests/test_notebooks.py b/binarycpython/tests/test_notebooks.py index 35d571cf89c80e494db72261714cdbb8d1c308c3..8d955ee851b4ae57e8754ce63acd96703d2bbd1d 100644 --- a/binarycpython/tests/test_notebooks.py +++ b/binarycpython/tests/test_notebooks.py @@ -67,6 +67,13 @@ class TestNotebook(unittest.TestCase): msg = "\nNotebook: {}\n\n".format(notebook_name) + "\n".join(["{}: {}\n{}".format(el['ename'], el['evalue'], '\n'.join(el['traceback'])) for el in errors]) self.assertEqual(errors, [], msg=msg) + def test_notebook_custom_logging(self): + notebook_name = 'notebook_custom_logging.ipynb' + full_notebook_path = os.path.join(NOTEBOOKS_DIR, notebook_name) + nb, errors = run_notebook(full_notebook_path) + msg = "\nNotebook: {}\n\n".format(notebook_name) + "\n".join(["{}: {}\n{}".format(el['ename'], el['evalue'], '\n'.join(el['traceback'])) for el in errors]) + self.assertEqual(errors, [], msg=msg) + def test_notebook_extra_features(self): notebook_name = 'notebook_extra_features.ipynb' full_notebook_path = os.path.join(NOTEBOOKS_DIR, notebook_name)