MCPcopy
hub / github.com/CadQuery/cadquery / testRevolveErrors

Method testRevolveErrors

tests/test_cadquery.py:678–684  ·  view source on GitHub ↗

Test that revolve raises errors when used incorrectly.

(self)

Source from the content-addressed store, hash-verified

676 self.assertGreater(box.val().Volume(), cut.val().Volume())
677
678 def testRevolveErrors(self):
679 """
680 Test that revolve raises errors when used incorrectly.
681 """
682 result = Workplane("XY").lineTo(0, 10).lineTo(5, 0)
683 with raises(ValueError):
684 result.revolve()
685
686 def testSpline(self):
687 """

Callers

nothing calls this directly

Calls 3

WorkplaneClass · 0.85
lineToMethod · 0.80
revolveMethod · 0.45

Tested by

no test coverage detected