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

Function test_missing_selection

tests/test_sketch.py:967–983  ·  view source on GitHub ↗
(s1)

Source from the content-addressed store, hash-verified

965
966
967def test_missing_selection(s1):
968
969 # offset requires selected wires
970 with raises(ValueError):
971 s1.offset(0.1)
972
973 # fillet requires selected vertices
974 with raises(ValueError):
975 s1.fillet(0.1)
976
977 # cannot delete without selection
978 with raises(ValueError):
979 s1.delete()
980
981 # cannot tag without selection
982 with raises(ValueError):
983 s1.tag("name")
984
985
986def test_mixed_close():

Callers

nothing calls this directly

Calls 4

offsetMethod · 0.80
deleteMethod · 0.80
filletMethod · 0.45
tagMethod · 0.45

Tested by

no test coverage detected