conftest.py 文件源码

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

项目:django-estimators 作者: fridiculous 项目源码 文件源码
def pytest_configure(config):
    # using test version of settings.py
    os.environ['DJANGO_SETTINGS_MODULE'] = "estimators.tests.settings"
    django.setup()

    # set MEDIA_ROOT to temp_dir before starting tests
    from django.conf import settings
    settings.MEDIA_ROOT = temp_dir.name
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号