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

Function test_colors_assy1

tests/test_assembly.py:1677–1689  ·  view source on GitHub ↗

Validate assembly colors with document explorer. Check both documents created with toCAF and STEP export round trip.

(assy_fixture, request, tmpdir, kind)

Source from the content-addressed store, hash-verified

1675 ],
1676)
1677def test_colors_assy1(assy_fixture, request, tmpdir, kind):
1678 """Validate assembly colors with document explorer.
1679
1680 Check both documents created with toCAF and STEP export round trip.
1681 """
1682
1683 assy = request.getfixturevalue(assy_fixture)
1684 stepfile = str((Path(tmpdir) / assy_fixture).with_suffix(f".{kind}"))
1685 assy.export(stepfile)
1686
1687 assy_i = assy.load(stepfile)
1688
1689 check_assy(assy, assy_i)
1690
1691
1692def test_materials():

Callers

nothing calls this directly

Calls 3

check_assyFunction · 0.85
loadMethod · 0.80
exportMethod · 0.45

Tested by

no test coverage detected