2019-01-05 13:56:58 +11:00
|
|
|
from tests import BaseTest
|
|
|
|
|
|
|
|
import cadquery
|
|
|
|
|
2020-01-20 20:52:12 +01:00
|
|
|
|
2019-01-05 13:56:58 +11:00
|
|
|
class TestJupyter(BaseTest):
|
|
|
|
def test_repr_html(self):
|
2020-01-20 20:52:12 +01:00
|
|
|
cube = cadquery.Workplane("XY").box(1, 1, 1)
|
2019-01-05 13:56:58 +11:00
|
|
|
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
|