MCPcopy
hub / github.com/CadQuery/cadquery / test_assy

Function test_assy

tests/test_pickle.py:44–56  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

42
43
44def test_assy():
45
46 mat_1 = Material(
47 "test", description="Test material", density=1.0, densityUnit="lb/in^3"
48 )
49
50 assy = (
51 Assembly()
52 .add(box(1, 1, 1), color=Color("blue"), material=mat_1)
53 .add(box(2, 2, 2))
54 )
55
56 assert isinstance(loads(dumps(assy)), Assembly)

Callers

nothing calls this directly

Calls 5

MaterialClass · 0.90
AssemblyClass · 0.90
ColorClass · 0.90
boxFunction · 0.85
addMethod · 0.45

Tested by

no test coverage detected