From 8023a992da750b44fd738fec6218e3c440e820fb Mon Sep 17 00:00:00 2001 From: Dion Moult Date: Tue, 17 Feb 2026 18:16:20 +1100 Subject: [PATCH] Fix tests where panel name and tab panel name is identical For now probably just easier to skip tabs. They are just containers and not worth testing. Famous last words :) --- src/bonsai/test/bim/test_feature.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/bonsai/test/bim/test_feature.py b/src/bonsai/test/bim/test_feature.py index a6d93c0006..262dce65ed 100644 --- a/src/bonsai/test/bim/test_feature.py +++ b/src/bonsai/test/bim/test_feature.py @@ -280,6 +280,8 @@ def create_ui_name_cache(): try: panel_type = getattr(bpy.types, bl_idname) if panel_type.bl_rna.base.name == "Panel": + if "_tab_" in panel_type.bl_idname: + continue # Tab panels are just groups and not relevant in testing ui_name_cache[panel_type.bl_label] = panel_type.bl_idname elif panel_type.bl_rna.base.name == "Operator": ui_name_cache[panel_type.bl_label] = bl_idname