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

Function test_assemble

tests/test_sketch.py:516–526  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

514
515
516def test_assemble():
517
518 s1 = Sketch()
519 s1.segment((0.0, 0), (0.0, 2.0))
520 s1.segment(Vector(4.0, -1)).close().arc((0.7, 0.6), 0.4, 0.0, 360.0).assemble()
521
522 s2 = Sketch()
523 s2.segment((0, 0), (1, 0))
524 s2.segment((2, 0), (3, 0))
525 with raises(ValueError):
526 s2.assemble()
527
528
529def test_finalize():

Callers

nothing calls this directly

Calls 6

segmentMethod · 0.95
assembleMethod · 0.95
SketchClass · 0.90
VectorClass · 0.85
arcMethod · 0.80
closeMethod · 0.45

Tested by

no test coverage detected