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

Function test_constraint_validation

tests/test_assembly.py:2256–2262  ·  view source on GitHub ↗
(simple_assy2)

Source from the content-addressed store, hash-verified

2254
2255
2256def test_constraint_validation(simple_assy2):
2257
2258 with pytest.raises(ValueError):
2259 simple_assy2.constrain("b1", "Fixed?")
2260
2261 with pytest.raises(ValueError):
2262 cq.assembly.Constraint((), (), (), "Fixed?")
2263
2264
2265def test_single_unary_constraint(simple_assy2):

Callers

nothing calls this directly

Calls 1

constrainMethod · 0.45

Tested by

no test coverage detected