Validate assembly roundtrip, checks colors, locs, names, subshapes.
(assy_fixture, request, tmpdir, kind)
| 1645 | ["chassis0_assy", "boxes1_assy", "subshape_assy", "multi_subshape_assy"], |
| 1646 | ) |
| 1647 | def test_colors_assy0(assy_fixture, request, tmpdir, kind): |
| 1648 | """Validate assembly roundtrip, checks colors, locs, names, subshapes. |
| 1649 | """ |
| 1650 | |
| 1651 | assy = request.getfixturevalue(assy_fixture) |
| 1652 | stepfile = str((Path(tmpdir) / assy_fixture).with_suffix(f".{kind}")) |
| 1653 | assy.export(stepfile) |
| 1654 | |
| 1655 | assy_i = assy.load(stepfile) |
| 1656 | |
| 1657 | check_assy(assy, assy_i) |
| 1658 | |
| 1659 | |
| 1660 | @pytest.mark.parametrize("kind", ["step", "xbf"]) |
nothing calls this directly
no test coverage detected