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

Method testAll

tests/test_selectors.py:61–66  ·  view source on GitHub ↗

all returns a list of CQ objects, so that you can iterate over them individually

(self)

Source from the content-addressed store, hash-verified

59 self.assertEqual(1, c.vertices().end().size())
60
61 def testAll(self):
62 "all returns a list of CQ objects, so that you can iterate over them individually"
63 c = CQ(makeUnitCube())
64 self.assertEqual(6, c.faces().size())
65 self.assertEqual(6, len(c.faces().all()))
66 self.assertEqual(4, c.faces().all()[0].vertices().size())
67
68 def testFirst(self):
69 c = CQ(makeUnitCube())

Callers

nothing calls this directly

Calls 5

makeUnitCubeFunction · 0.90
allMethod · 0.80
sizeMethod · 0.45
facesMethod · 0.45
verticesMethod · 0.45

Tested by

no test coverage detected