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.2.0

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.2.0
File Size Uploaded Provenance Actions
flea-9.2.0.tar.gz 34.5 kB Without provenance Details for flea-9.2.0.tar.gz

Built distribution (wheel)

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

Total release size: 62.1 kB

Release files / flea-9.2.0.tar.gz

Download URL flea-9.2.0.tar.gz
Size 34.5 kB
Tags Source
SHA-256 checksum
How to use checksums
e97a6b106d8140b5f64074441bdb1e4d9e71c63a872279dc0194e90e8a78cb5c
BLAKE2b-256 checksum
How to use checksums
9e1cb9d583c89d763042240e97f73e2228160b68aadabe97289cabb33562b8e1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.15

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

Download URL flea-9.2.0-py3-none-any.whl
Size 27.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
37ebe59402ca7de0b2285920594487781302e948dfe9c5079e0f3336c16483e4
BLAKE2b-256 checksum
How to use checksums
48835faeb33a14b6488205771edf6b8221e55c0002a7b6eefd3e79534c01c599
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.15

Security for flea 9.2.0

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.2.0 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