推荐学习书目
› 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
26huitailang
V2EX  ›  Python

webpy 自动化测试,每次 request 后都会新建一个 session。

  •  
  •   26huitailang · Mar 15, 2016 · 3366 views
    This topic created in 3851 days ago, the information mentioned may be changed or developed.
    在 Learn Python By the Hard Way EX52 中,写了个小的文字游戏,但是卡在 app_tests.py 那儿了,我用 nosetests 及作者的 request 方式去测试程序,发现每次 session.room 都是默认值,最后发现是因为每次 request 都新建了一个 session ,请问怎么在自动化测试中让每次访问都保持同一个 session ,谢谢!
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   970 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 329ms · UTC 18:31 · PVG 02:31 · LAX 11:31 · JFK 14:31
    ♥ Do have faith in what you're doing.