mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-12 02:23:34 +00:00
c01433cb6c
Convert bare Mock() to Mock(spec=bpy.types.Object) for Blender-object stand-ins in TestRecalculateWallsWithNewConnections, TestMEPActionGuards, and TestRecreateAggregateIteratesAllNew so typos on the Blender API fail loudly instead of silently returning a MagicMock. Replace the ad-hoc Mock() ConnectionRecord stand-in in TestRecreateConnectionsZipsPairs with a real ConnectionRecord instance, which pins field names at construction and catches drift if the dataclass fields ever get renamed. IFC entity mocks remain bare Mock() intentionally: entity_instance attributes are schema-driven at runtime rather than defined statically on the class, so spec= would refuse the .GlobalId / .HasFillings / .ConnectedTo attribute writes the tests need. Relates to #8088. Generated with the assistance of an AI coding tool.