@@ -431,33 +431,26 @@ def get_full_data() -> test_utils.JsonData:
431431
432432def test_model_components (client : FlaskClient ) -> None :
433433 geode_object_type = "BRep"
434- filename = "LS2 .og_brep"
434+ filename = "cube .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
443441 for mesh_component in mesh_components :
444442 assert isinstance (mesh_component , object )
445443 assert isinstance (mesh_component ["geode_id" ], str )
446444 assert isinstance (mesh_component ["viewer_id" ], int )
447445 assert isinstance (mesh_component ["name" ], str )
448446 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
453447 assert isinstance (mesh_component ["boundaries" ], list )
454448 for boundary_uuid in mesh_component ["boundaries" ]:
455449 assert isinstance (boundary_uuid , str )
456450 assert isinstance (mesh_component ["internals" ], list )
457451 for internal_uuid in mesh_component ["internals" ]:
458452 assert isinstance (internal_uuid , str )
459- assert name_is_uuid is True
460- assert name_is_not_uuid is True
453+ assert isinstance (mesh_component ["is_active" ], bool )
461454 assert "collection_components" in response .get_json ()
462455 collection_components = response .get_json ()["collection_components" ]
463456 assert isinstance (collection_components , list )
@@ -468,6 +461,7 @@ def test_model_components(client: FlaskClient) -> None:
468461 assert isinstance (collection_component ["items" ], list )
469462 for item_uuid in collection_component ["items" ]:
470463 assert isinstance (item_uuid , str )
464+ assert isinstance (collection_component ["is_active" ], bool )
471465
472466
473467def test_export_project_route (client : FlaskClient , tmp_path : Path ) -> None :
0 commit comments