Tests to make sure that removing a part/subassembly with a name that does not exist fails.
()
| 2410 | |
| 2411 | |
| 2412 | def 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 | |
| 2425 | def test_assembly_remove_part(): |