Exports a box with unit="INCH" and verifies the STEP file header declares inches.
(tmpdir)
| 993 | |
| 994 | |
| 995 | def test_step_export_unit_inches(tmpdir): |
| 996 | """ |
| 997 | Exports a box with unit="INCH" and verifies the STEP file header declares inches. |
| 998 | """ |
| 999 | box_path = os.path.join(tmpdir, "unit_inches.step") |
| 1000 | Workplane().box(1, 1, 1).val().exportStep(box_path, unit="INCH") |
| 1001 | |
| 1002 | with open(box_path, "r") as f: |
| 1003 | content = f.read() |
| 1004 | |
| 1005 | assert "INCH" in content |
| 1006 | |
| 1007 | |
| 1008 | def test_step_export_output_unit(tmpdir): |
nothing calls this directly
no test coverage detected