MCPcopy Index your code
hub / github.com/CadQuery/cadquery / test_colors_assy0

Function test_colors_assy0

tests/test_assembly.py:1647–1657  ·  view source on GitHub ↗

Validate assembly roundtrip, checks colors, locs, names, subshapes.

(assy_fixture, request, tmpdir, kind)

Source from the content-addressed store, hash-verified

1645 ["chassis0_assy", "boxes1_assy", "subshape_assy", "multi_subshape_assy"],
1646)
1647def 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"])

Callers

nothing calls this directly

Calls 3

check_assyFunction · 0.85
loadMethod · 0.80
exportMethod · 0.45

Tested by

no test coverage detected