推荐学习书目
› 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 · Jan 22, 2019 · 2305 views
    This topic created in 2805 days ago, the information mentioned may be changed or developed.
    目录结构:
    Interface_JinFive/
    -- /common
    -- /datas
    --/Log
    --/





    各位大佬,我用 python+unittest 框架的时候,执行单个用例是可以正常找到数据目录的,批量执行就报错找不到目录,请问下是怎么会事情呢?
    2 replies  •  2019-01-23 17:12:16 +08:00
    LeoQ
        1
    LeoQ  
       Jan 23, 2019
    提问的时候顺便带一下代码, 详细报错日志, 会让你的问题解决的更快.
    duzhonglin
        2
    duzhonglin  
    OP
       Jan 23, 2019
    @LeoQ 不好意思,这个帖子是我发错了,我想删除可惜现在删不了。。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2534 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 10:03 · PVG 18:03 · LAX 03:03 · JFK 06:03
    ♥ Do have faith in what you're doing.