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

Function test_toJSON

tests/test_assembly.py:1423–1432  ·  view source on GitHub ↗
(simple_assy, empty_top_assy)

Source from the content-addressed store, hash-verified

1421
1422
1423def test_toJSON(simple_assy, empty_top_assy):
1424
1425 r1 = toJSON(simple_assy)
1426 r2 = toJSON(simple_assy)
1427 r3 = toJSON(empty_top_assy)
1428
1429 # factor 2 to account for edges and faces being split
1430 assert len(r1) == 3 * 2
1431 assert len(r2) == 3 * 2
1432 assert len(r3) == 1 * 2
1433
1434
1435@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 1

toJSONFunction · 0.90

Tested by

no test coverage detected