Skip to content

Commit 1f1c6e2

Browse files
author
hhsecond
committed
test
1 parent 734809d commit 1f1c6e2

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

test.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,11 @@
44
import pytest
55

66

7-
def notebook_runner(notebook_path):
7+
@pytest.mark.parametrize("notebook_path", glob.glob(os.path.join(os.path.dirname(__file__), "*.ipynb")))
8+
def test_notebook_runner(notebook_path):
89
"""
910
This pytest function runs all the ipynb files in the repository
1011
using papermill - a notebook runner that throws if any exception occurs while executing the notebook
1112
"""
1213
# Run all the notebooks in the repository
1314
pm.execute_notebook(notebook_path, "-")
14-
15-
16-
17-
parameterizer = pytest.mark.parametrize("notebook_path", glob.glob(os.path.join(os.path.dirname(__file__), "*.ipynb")))
18-
# this variable (Which is a function) will be executed when pytest triggers the test
19-
test_notebooks = parameterizer(notebook_runner)

0 commit comments

Comments
 (0)