Django Fail
Django Fail provides tools for testing your site under less-than-ideal conditions.
When working locally, response times are near instant, and there is no entropy introduced by network hardware (e.g. proxies or load balancers) that may, for some reason or other, fail.
Django Fail helps you test what happens when some parts of your site don’t load or load slowly. This can be particularly helpful for responses used in Ajax-powered applications.
@fail(status=500, content='', mimetype='text/html')
The @fail() decorator makes a view return some kind of failure response, instead of a real response.
For the arguments, status is the status code, normally 500, content is any content to return, normally '', and mimetype is the mimetype of the response, normally text/html.
The @fail() decorator can be globally disabled by adding FAIL_ON = False to settings.py.
@slow(delay=2)
The @slow() decorator makes a response wait a while before returning. The delay is in seconds and defaults to 2.
The @slow() decorator can be globally disabled by adding SLOW_ON = False to settings.py.
Metadata
Release files for django-fail 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django-fail-0.1.0.tar.gz | 3.0 kB | Without provenance | Details for django-fail-0.1.0.tar.gz |
Release files / django-fail-0.1.0.tar.gz
| Download URL | django-fail-0.1.0.tar.gz |
|---|---|
| Size | 3.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ab219b50c634050372f69d8c40764e8b2ae3218550989c645f59c7d543c72843
|
|
BLAKE2b-256 checksum How to use checksums |
a9433d443af1bc0897bef3845faab2fc4230cfb6e6a2700e3736d92d398f38a7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for django-fail 0.1.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.