MCPcopy Index your code
hub / github.com/CadQuery/cadquery / testLoftRaisesValueError

Method testLoftRaisesValueError

tests/test_cadquery.py:518–526  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

516 self.assertGreater(add.val().Volume(), box.val().Volume())
517
518 def testLoftRaisesValueError(self):
519 s0 = Workplane().hLine(1) # no wires
520 with raises(ValueError):
521 s0.loft()
522 s1 = Workplane("XY").circle(5) # one wire
523 with self.assertRaises(ValueError) as cm:
524 s1.loft()
525 err = cm.exception
526 self.assertEqual(str(err), "More than one wire or face is required")
527
528 def testLoftCombine(self):
529 """

Callers

nothing calls this directly

Calls 4

WorkplaneClass · 0.85
hLineMethod · 0.80
loftMethod · 0.80
circleMethod · 0.45

Tested by

no test coverage detected