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

Function test_assembly_remove_no_name_match

tests/test_assembly.py:2412–2422  ·  view source on GitHub ↗

Tests to make sure that removing a part/subassembly with a name that does not exist fails.

()

Source from the content-addressed store, hash-verified

2410
2411
2412def test_assembly_remove_no_name_match():
2413 """
2414 Tests to make sure that removing a part/subassembly with a name that does not exist fails.
2415 """
2416
2417 assy = cq.Assembly()
2418 assy.add(box(1, 1, 1), name="part1")
2419 assy.add(box(2, 2, 2), name="part2")
2420
2421 with pytest.raises(ValueError):
2422 assy.remove("part3")
2423
2424
2425def test_assembly_remove_part():

Callers

nothing calls this directly

Calls 3

addMethod · 0.95
removeMethod · 0.95
boxFunction · 0.85

Tested by

no test coverage detected