Exports a box without specifying a unit and verifies the STEP file header defaults to millimeters.
(tmpdir)
| 978 | |
| 979 | |
| 980 | def test_step_export_unit_default(tmpdir): |
| 981 | """ |
| 982 | Exports a box without specifying a unit and verifies the STEP file |
| 983 | header defaults to millimeters. |
| 984 | """ |
| 985 | |
| 986 | box_path = os.path.join(tmpdir, "unit_default.step") |
| 987 | Workplane().box(1, 1, 1).val().exportStep(box_path) |
| 988 | |
| 989 | with open(box_path, "r") as f: |
| 990 | content = f.read() |
| 991 | |
| 992 | assert "MILLI" in content |
| 993 | |
| 994 | |
| 995 | def test_step_export_unit_inches(tmpdir): |
nothing calls this directly
no test coverage detected