test_utils.py 文件源码

python
阅读 25 收藏 0 点赞 0 评论 0

项目:varapp-backend-py 作者: varapp 项目源码 文件源码
def __exit__(self, return_type, return_value, traceback):
        if os.path.exists(self.fullpath):
            os.remove(self.fullpath)
        name = db_name_from_filename(self.filename)
        if name in settings.DATABASES:
            settings.DATABASES.pop(name)
        if name in connections.databases:
            connections.databases.pop(name)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号