'Tests that the list of disabled xblocks can dynamically update.'

@ddt.data(ModuleStoreEnum.Type.mongo, ModuleStoreEnum.Type.split)
def test_dynamic_updates(self, default_ms):

    with self.store.default_store(default_ms):
        course = CourseFactory()
        item_usage_id = self._verify_descriptor('problem', course, 'CapaDescriptorWithMixins')
        XBlockConfiguration(name='problem', enabled=False).save()
        self._verify_descriptor('problem', course, 'CapaDescriptorWithMixins', item_usage_id)
        self.store.request_cache.data = {}
        self._verify_descriptor('problem', course, 'RawDescriptorWithMixins', item_usage_id)
