1
0
mirror of https://github.com/gsi-upm/soil synced 2024-12-22 08:18:13 +00:00

Tweak ipynb testing

This commit is contained in:
J. Fernando Sánchez 2023-04-24 18:57:07 +02:00
parent 55bbc76b2a
commit c13550cf83

View File

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