added TestJupyter

This commit is contained in:
Peter Boin
2019-01-05 13:56:58 +11:00
parent d27ccbc4ce
commit 06ea0df15c
3 changed files with 29 additions and 6 deletions

13
tests/TestJupyter.py Normal file
View File

@ -0,0 +1,13 @@
from tests import BaseTest
import cadquery
class TestJupyter(BaseTest):
def test_repr_html(self):
cube = cadquery.Workplane('XY').box(1, 1, 1)
shape = cube.val()
self.assertIsInstance(shape, cadquery.occ_impl.shapes.Solid)
# Test no exception on rendering to html
html = shape._repr_html_()
# TODO: verification improvement: test for valid html