Coverage for tests/test_tutorials.py: 75%

4 statements  

« prev     ^ index     » next       coverage.py v7.9.1, created at 2025-06-14 15:55 +0200

1""" Test Jupyter Notebooks in the tutorials directory""" 

2 

3def test_tutorials(): 

4 ... 

5 # import nbformat 

6 # from nbclient import NotebookClient 

7 # filename = "./tutorials/my_first_simulation.ipynb" 

8 # as_version = 4 

9 # nb = nbformat.read(filename, as_version=as_version) 

10 # client = NotebookClient(nb, timeout=600, resources={'metadata': {'path': './tutorials/'}}) # kernel_name='python3' 

11 # client.execute() 

12 

13if __name__ == "__main__": 

14 test_tutorials()