def __exit__(self, t, value, traceback):
        self.cls._meta["db_alias"] = self.ori_db_alias
        self.cls._collection = self.collection
Reset the db_alias and collection
dataset/ETHPy150Open MongoEngine/mongoengine/mongoengine/context_managers.py/switch_db.__exit__