|
|
@ -10,7 +10,7 @@ class TestNotebooks(TestCase):
|
|
|
|
notebook = os.path.join(ROOT, "../docs/tutorial/soil_tutorial.ipynb")
|
|
|
|
notebook = os.path.join(ROOT, "../docs/tutorial/soil_tutorial.ipynb")
|
|
|
|
with open(notebook) as f:
|
|
|
|
with open(notebook) as f:
|
|
|
|
nb = nbformat.read(f, as_version=4)
|
|
|
|
nb = nbformat.read(f, as_version=4)
|
|
|
|
ep = ExecutePreprocessor(timeout=60000, kernel_name='python3')
|
|
|
|
ep = ExecutePreprocessor(timeout=60000)
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
assert ep.preprocess(nb) is not None, f"Got empty notebook for {notebook}"
|
|
|
|
assert ep.preprocess(nb) is not None, f"Got empty notebook for {notebook}"
|
|
|
|
except Exception:
|
|
|
|
except Exception:
|
|
|
|