Compare commits
7 Commits
4e296e0cf1
...
eca4cae298
Author | SHA1 | Date |
---|---|---|
J. Fernando Sánchez | eca4cae298 | 1 year ago |
J. Fernando Sánchez | 47a67f6665 | 1 year ago |
J. Fernando Sánchez | c13550cf83 | 1 year ago |
J. Fernando Sánchez | 55bbc76b2a | 1 year ago |
J. Fernando Sánchez | d13e4eb4b9 | 1 year ago |
J. Fernando Sánchez | 93d23e4cab | 1 year ago |
J. Fernando Sánchez | 3802578ad5 | 1 year ago |
Before Width: | Height: | Size: 4.7 KiB |
Before Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 26 KiB |
Before Width: | Height: | Size: 31 KiB |
Before Width: | Height: | Size: 33 KiB |
Before Width: | Height: | Size: 32 KiB |
Before Width: | Height: | Size: 29 KiB |
Before Width: | Height: | Size: 33 KiB |
Before Width: | Height: | Size: 35 KiB |
Before Width: | Height: | Size: 28 KiB |
Before Width: | Height: | Size: 37 KiB |
Before Width: | Height: | Size: 34 KiB |
Before Width: | Height: | Size: 33 KiB |
Before Width: | Height: | Size: 37 KiB |
Before Width: | Height: | Size: 28 KiB |
Before Width: | Height: | Size: 28 KiB |
Before Width: | Height: | Size: 28 KiB |
Before Width: | Height: | Size: 28 KiB |
Before Width: | Height: | Size: 28 KiB |
Before Width: | Height: | Size: 952 KiB |
Before Width: | Height: | Size: 29 KiB |
Before Width: | Height: | Size: 45 KiB |
Before Width: | Height: | Size: 42 KiB |
Before Width: | Height: | Size: 25 KiB |
Before Width: | Height: | Size: 53 KiB |
@ -1 +1,2 @@
|
||||
ipython>=7.31.1
|
||||
nbsphinx==0.9.1
|
||||
|
@ -0,0 +1,18 @@
|
||||
from unittest import TestCase
|
||||
import os
|
||||
import nbformat
|
||||
from nbconvert.preprocessors import ExecutePreprocessor
|
||||
|
||||
ROOT = os.path.abspath(os.path.dirname(__file__))
|
||||
|
||||
class TestNotebooks(TestCase):
|
||||
def test_tutorial(self):
|
||||
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)
|
||||
try:
|
||||
assert ep.preprocess(nb) is not None, f"Got empty notebook for {notebook}"
|
||||
except Exception:
|
||||
assert False, f"Failed executing {notebook}"
|
||||
|