Functional testing for WSGI: drive WSGI apps from your test suite
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
flea-9.1.1.tar.gz
(35.1 kB
view details)
Built Distribution
flea-9.1.1-py3-none-any.whl
(27.3 kB
view details)
File details
Details for the file flea-9.1.1.tar.gz
.
File metadata
- Download URL: flea-9.1.1.tar.gz
- Upload date:
- Size: 35.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.22.0 setuptools/63.1.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.7.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | feeb425b600ea33d654f7935f484712802871366c3495cf25aefe160558a6691 |
|
MD5 | f1d8345764b1a7778a26af2dde2be8b3 |
|
BLAKE2b-256 | 3ff645854ac75dc9eb0e05bb6955b5c7ef8feec546a1aa80f49fe97bbf946c4b |
File details
Details for the file flea-9.1.1-py3-none-any.whl
.
File metadata
- Download URL: flea-9.1.1-py3-none-any.whl
- Upload date:
- Size: 27.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.22.0 setuptools/63.1.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.7.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e6dc395931db6119d65936a737ba61ee5ca3eb7a8f3b535cca7e1024e6cd58f7 |
|
MD5 | 62cb89b90361832bd8ba4944b81a9ae3 |
|
BLAKE2b-256 | cad8f77442a230f49a9f8320f5d48d0cf4ede033036a1ccf64cf20ac4298bde7 |