(assy_fixture, expected, request, tmpdir)
| 1383 | ], |
| 1384 | ) |
| 1385 | def test_step_export_loc(assy_fixture, expected, request, tmpdir): |
| 1386 | stepfile = (Path(tmpdir) / assy_fixture).with_suffix(".step") |
| 1387 | if not stepfile.exists(): |
| 1388 | assy = request.getfixturevalue(assy_fixture) |
| 1389 | assy.save(str(stepfile)) |
| 1390 | o = cq.importers.importStep(str(stepfile)) |
| 1391 | assert o.solids().size() == expected["nsolids"] |
| 1392 | c = cq.Compound.makeCompound(o.solids().vals()).Center() |
| 1393 | assert pytest.approx(c.toTuple()) == expected["center"] |
| 1394 | |
| 1395 | |
| 1396 | def test_native_export(simple_assy, tmpdir): |
nothing calls this directly
no test coverage detected