(assy_fixture, root_name, request)
| 691 | "assy_fixture, root_name", [("simple_assy", None), ("nested_assy", "TOP")], |
| 692 | ) |
| 693 | def test_assy_root_name(assy_fixture, root_name, request): |
| 694 | assy = request.getfixturevalue(assy_fixture) |
| 695 | _, doc = toCAF(assy, True) |
| 696 | root = get_doc_nodes(doc, False)[0] |
| 697 | if root_name: |
| 698 | assert root["name"] == root_name |
| 699 | else: |
| 700 | # When a name is not user-specifed, the name is assigned a UUID |
| 701 | m = re.findall(r"[0-9a-f]+", root["name"]) |
| 702 | assert list(map(len, m)) == [8, 4, 4, 4, 12] |
| 703 | |
| 704 | |
| 705 | def test_step_export(nested_assy, tmpdir): |
nothing calls this directly
no test coverage detected