diff --git a/tests/.gitignore b/tests/.gitignore index a7701fd..9bebd7b 100644 --- a/tests/.gitignore +++ b/tests/.gitignore @@ -1,2 +1,4 @@ *.cpp -*.tex \ No newline at end of file +*.tex +*.ipynb_checkpoints +*.nbconvert.ipynb \ No newline at end of file diff --git a/tests/test_math_helper.py b/tests/test_math_helper.py index b5016ad..962eb7b 100644 --- a/tests/test_math_helper.py +++ b/tests/test_math_helper.py @@ -1,13 +1,23 @@ #!/bin/env python3 # -*- coding: utf-8 -*- from Slides import math_helper as mh import numpy as np from sympy import Matrix +import subprocess def test_print_colored_matrix(): mh.init_printing() a = Matrix(np.zeros((2, 2))) a = mh.ColoredMatrix(a) mh.print_latex('{0}', a) + + +def test_jupyter_notebook(): + ret = subprocess.call( + "jupyter nbconvert --to notebook " + "--execute math_test.ipynb", + shell=True) + if ret: + raise RuntimeError("could not execute the notebook")