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

Function test_export

tests/test_sketch.py:830–836  ·  view source on GitHub ↗
(tmpdir)

Source from the content-addressed store, hash-verified

828
829
830def test_export(tmpdir):
831
832 with chdir(tmpdir):
833 s1 = Sketch().rect(1, 1).export("sketch.dxf")
834 s2 = Sketch().importDXF("sketch.dxf")
835
836 assert (s1 - s2).val().Area() == approx(0)
837
838
839@fixture

Callers

nothing calls this directly

Calls 6

SketchClass · 0.90
importDXFMethod · 0.80
exportMethod · 0.45
rectMethod · 0.45
AreaMethod · 0.45
valMethod · 0.45

Tested by

no test coverage detected