We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd3f1c8 commit 55ba8caCopy full SHA for 55ba8ca
tests/test_cadquery.py
@@ -2189,13 +2189,15 @@ def testSplitKeepingBottom(self):
2189
self.assertEqual(8, result.solids().item(0).faces().size())
2190
2191
def testSplitError(self):
2192
- """
2193
- Test split produces the correct error when called with no solid to split.
2194
+ # Test split produces the correct error when called with no solid to split.
2195
w = Workplane().hLine(1).vLine(1).close()
2196
with raises(ValueError):
2197
w.split(keepTop=True)
2198
+ # Split should raise ValueError when called with no side kept
+ with raises(ValueError):
2199
+ w.split(keepTop=False, keepBottom=False)
2200
+
2201
def testBoxDefaults(self):
2202
"""
2203
Tests creating a single box
0 commit comments