flea-9.1.0
توضیحات
Functional testing for WSGI: drive WSGI apps from your test suite
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | flea-9.1.0 |
| نام | flea |
| نسخه کتابخانه | 9.1.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Oliver Cope |
| ایمیل نویسنده | oliver@redgecko.org |
| آدرس صفحه اصلی | https://ollycope.com/software/flea/latest/ |
| آدرس اینترنتی | https://pypi.org/project/flea/ |
| مجوز | Apache |
Flea - WSGI testing
===================
Flea helps you write functional tests for WSGI applications.
Flea uses CSS selectors and XPath to give you a powerful tool to
drive and test the output of your WSGI web applications.
Here's an example of how easy it is to test a WSGI application::
>>> from flea import Agent
>>> r = Agent(my_wsgi_app).get('/')
>>> print r.body
<html>
<body>
<a href="/sign-in">sign in</a>
</body>
</html>
>>> r = r.click('sign in')
>>> r = r("form#login-form").fill(
... username = 'root',
... password = 'secret',
... ).submit()
>>> assert 'login successful' in r.body
نیازمندی
| مقدار | نام |
|---|---|
| >=2.0.0 | fresco |
| - | lxml |
| - | cssselect |
نحوه نصب
نصب پکیج whl flea-9.1.0:
pip install flea-9.1.0.whl
نصب پکیج tar.gz flea-9.1.0:
pip install flea-9.1.0.tar.gz