From 2e950e3ae4d2b8fa7d1415e8fed006ab36c6f51b Mon Sep 17 00:00:00 2001
From: David Hendriks <davidhendriks93@gmail.com>
Date: Wed, 8 Sep 2021 20:34:28 +0100
Subject: [PATCH] added the custom logging notebook to the tests

---
 binarycpython/tests/test_notebooks.py | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/binarycpython/tests/test_notebooks.py b/binarycpython/tests/test_notebooks.py
index 35d571cf8..8d955ee85 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)
-- 
GitLab