From 4d762cc52c4eae55c2729d42ad3487bcab73bae6 Mon Sep 17 00:00:00 2001 From: wassname Date: Mon, 12 Oct 2020 15:18:14 +0800 Subject: [PATCH] plain test --- test/test_notebooks.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/test/test_notebooks.py b/test/test_notebooks.py index 1da14e2..0d36213 100644 --- a/test/test_notebooks.py +++ b/test/test_notebooks.py @@ -44,7 +44,7 @@ def run_notebook(notebook_path): nb = nbformat.read(f, as_version=4) proc = ExecutePreprocessor(timeout=60, kernel_name="deep_ml_curriculum") - proc.allow_errors = True + proc.allow_errors = False proc.preprocess(nb, {"metadata": {"path": "/"}}) output_path = os.path.join(dirname, "{}_all_output.ipynb".format(nb_name)) @@ -90,10 +90,10 @@ def run_notebook(notebook_path): ] -@pytest.mark.parametrize("notebook", notebooks) -def test_notebooks(notebook): - print(notebook) - nb, errors = run_notebook(notebook) - # print('errors', errors) - assert len(errors) == 0 +# @pytest.mark.parametrize("notebook", notebooks) +# def test_notebooks(notebook): +# print(notebook) +# nb, errors = run_notebook(notebook) +# # print('errors', errors) +# assert len(errors) == 0