@@ -431,25 +431,33 @@ def get_full_data() -> test_utils.JsonData:
431431
432432def test_model_components (client : FlaskClient ) -> None :
433433 geode_object_type = "BRep"
434- filename = "cube .og_brep"
434+ filename = "LS2 .og_brep"
435435 response = test_save_viewable_file (client , geode_object_type , filename )
436436 assert response .status_code == 200
437437 assert "mesh_components" in response .get_json ()
438438 mesh_components = response .get_json ()["mesh_components" ]
439439 assert isinstance (mesh_components , list )
440440 assert len (mesh_components ) > 0
441+ name_is_uuid = False
442+ name_is_not_uuid = False
441443 for mesh_component in mesh_components :
442444 assert isinstance (mesh_component , object )
443445 assert isinstance (mesh_component ["geode_id" ], str )
444446 assert isinstance (mesh_component ["viewer_id" ], int )
445447 assert isinstance (mesh_component ["name" ], str )
446448 assert isinstance (mesh_component ["type" ], str )
449+ if mesh_component ["name" ] == mesh_component ["geode_id" ]:
450+ name_is_uuid = True
451+ else :
452+ name_is_not_uuid = True
447453 assert isinstance (mesh_component ["boundaries" ], list )
448454 for boundary_uuid in mesh_component ["boundaries" ]:
449455 assert isinstance (boundary_uuid , str )
450456 assert isinstance (mesh_component ["internals" ], list )
451457 for internal_uuid in mesh_component ["internals" ]:
452458 assert isinstance (internal_uuid , str )
459+ assert name_is_uuid is True
460+ assert name_is_not_uuid is True
453461 assert "collection_components" in response .get_json ()
454462 collection_components = response .get_json ()["collection_components" ]
455463 assert isinstance (collection_components , list )
0 commit comments