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

Method testSplitError

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

Source from the content-addressed store, hash-verified

2374 self.assertEqual(8, result.solids().item(0).faces().size())
2375
2376 def testSplitError(self):
2377 # Test split produces the correct error when called with no solid to split.
2378 w = Workplane().hLine(1).vLine(1).close()
2379 with raises(ValueError):
2380 w.split(keepTop=True)
2381
2382 # Split should raise ValueError when called with no side kept
2383 with raises(ValueError):
2384 w.split(keepTop=False, keepBottom=False)
2385
2386 def testBoxDefaults(self):
2387 """

Callers

nothing calls this directly

Calls 5

WorkplaneClass · 0.85
vLineMethod · 0.80
hLineMethod · 0.80
closeMethod · 0.45
splitMethod · 0.45

Tested by

no test coverage detected