Skip to main content

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

Metadata

Release files for flea 9.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for flea 9.1.1
File Size Uploaded Provenance Actions
flea-9.1.1.tar.gz 35.1 kB Without provenance Details for flea-9.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for flea 9.1.1
File Interpreter ABI Platform Actions
flea-9.1.1-py3-none-any.whl Python 3 none any Details for flea-9.1.1-py3-none-any.whl

Total release size: 62.5 kB

Release files / flea-9.1.1.tar.gz

Download URL flea-9.1.1.tar.gz
Size 35.1 kB
Tags Source
SHA-256 checksum
How to use checksums
feeb425b600ea33d654f7935f484712802871366c3495cf25aefe160558a6691
BLAKE2b-256 checksum
How to use checksums
3ff645854ac75dc9eb0e05bb6955b5c7ef8feec546a1aa80f49fe97bbf946c4b
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / flea-9.1.1-py3-none-any.whl

Download URL flea-9.1.1-py3-none-any.whl
Size 27.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e6dc395931db6119d65936a737ba61ee5ca3eb7a8f3b535cca7e1024e6cd58f7
BLAKE2b-256 checksum
How to use checksums
cad8f77442a230f49a9f8320f5d48d0cf4ede033036a1ccf64cf20ac4298bde7
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for flea 9.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

9.1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page