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

Method testTag

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

Source from the content-addressed store, hash-verified

4282 edge_wire = Wire.assembleEdges(edge_wire)
4283
4284 def testTag(self):
4285
4286 # test tagging
4287 result = (
4288 Workplane("XY")
4289 .pushPoints([(-2, 0), (2, 0)])
4290 .box(1, 1, 1, combine=False)
4291 .tag("2 solids")
4292 .union(Workplane("XY").box(6, 1, 1))
4293 )
4294 self.assertEqual(len(result.objects), 1)
4295 result = result._getTagged("2 solids")
4296 self.assertEqual(len(result.objects), 2)
4297
4298 with self.assertRaises(ValueError):
4299 result = result._getTagged("3 solids")
4300
4301 def testCopyWorkplane(self):
4302

Callers

nothing calls this directly

Calls 6

WorkplaneClass · 0.85
unionMethod · 0.80
boxMethod · 0.80
pushPointsMethod · 0.80
_getTaggedMethod · 0.80
tagMethod · 0.45

Tested by

no test coverage detected