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

Method testInvalidPlane

tests/test_cad_objects.py:568–575  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

566 )
567
568 def testInvalidPlane(self):
569 # Test plane creation error handling
570 with self.assertRaises(ValueError):
571 Plane.named("XX", (0, 0, 0))
572 with self.assertRaises(ValueError):
573 Plane(origin=(0, 0, 0), xDir=(0, 0, 0), normal=(0, 1, 1))
574 with self.assertRaises(ValueError):
575 Plane(origin=(0, 0, 0), xDir=(1, 0, 0), normal=(0, 0, 0))
576
577 def testPlaneMethods(self):
578 # Test error checking

Callers

nothing calls this directly

Calls 2

PlaneClass · 0.85
namedMethod · 0.80

Tested by

no test coverage detected