'Delete all content in the Modulestore, and reset the Modulestore
settings from before :py:meth:`start_modulestore_isolation` was
called.'

@classmethod
def end_modulestore_isolation(cls):

    drop_mongo_collections()
    XMODULE_FACTORY_LOCK.disable()
    cls.__settings_overrides.pop().__exit__(None, None, None)
    assert (settings.MODULESTORE == cls.__old_modulestores.pop())
    assert (settings.CONTENTSTORE == cls.__old_contentstores.pop())
    cls.end_cache_isolation()
    cls.enable_all_signals()
