Since we use set_item here, the mapping id does not get updated by the mix-in class, which requires that you do specifically self._mappings = new_mapping.
I expect this may be a common error, perhaps we should look into solutions to make the version that at least rewrites the top level of entries automatically properly increment mapping_id.
https://github.com/yaq-project/yaq-python/blob/c686c3472e935dd4a9ae412cc327dd31b56e4146/yaqd-fakes/yaqd_fakes/_fake_spectrometer.py#L28
Since we use
set_item
here, the mapping id does not get updated by the mix-in class, which requires that you do specificallyself._mappings = new_mapping
.I expect this may be a common error, perhaps we should look into solutions to make the version that at least rewrites the top level of entries automatically properly increment
mapping_id
.