V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
duzhonglin
V2EX  ›  Python

Python unittest 批量执行用例找不到测试数据目录(单独执行是没有问题的)

  •  
  •   duzhonglin · 2019-01-22 09:22:26 +08:00 · 1223 次点击
    这是一个创建于 1892 天前的主题,其中的信息可能已经有所发展或是发生改变。
    目录结构:
    Interface_JinFive/
    -- /common
    -- /datas
    --/Log
    --/





    各位大佬,我用 python+unittest 框架的时候,执行单个用例是可以正常找到数据目录的,批量执行就报错找不到目录,请问下是怎么会事情呢?
    2 条回复    2019-01-23 17:12:16 +08:00
    LeoQ
        1
    LeoQ  
       2019-01-23 16:23:48 +08:00
    提问的时候顺便带一下代码, 详细报错日志, 会让你的问题解决的更快.
    duzhonglin
        2
    duzhonglin  
    OP
       2019-01-23 17:12:16 +08:00
    @LeoQ 不好意思,这个帖子是我发错了,我想删除可惜现在删不了。。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5446 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 08:50 · PVG 16:50 · LAX 01:50 · JFK 04:50
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.