Source code for ewoks.tests.test_notebooks

import os
from glob import glob
import pytest
import testbook

root_dir = os.path.join(os.path.dirname(__file__), "notebooks")
notebooks = [os.path.basename(f) for f in glob(os.path.join(root_dir, "*.ipynb"))]


[docs]@pytest.mark.parametrize("filename", notebooks) def test_notebooks(filename): if filename == "benchmark.ipynb": pytest.skip("benchmark takes too long") filename = os.path.join(root_dir, filename) with testbook.testbook(filename, execute=True): pass