Django AssertMaxNumQueries
- Provides a mixin and TransactionTestCase subclass with assertMaxNumQueries(),
analogous to django.test.TransactionTestCase.assertNumQueries
Free software: MIT license
Documentation: https://django-assertmaxnumqueries.readthedocs.io.
Usage
Usage is identical to django.test.TransactionTestCase.assertNumQueries , except check on the number of queries is assertLessEqual insert of assertEqual.
To use Django AssertMaxNumQueries in a project:
import django_assertmaxnumqueries
class MyTestCase(django_assertmaxnumqueries.TransactionTestCase):
def test_my_test(self):
with self.assertMaxNumQueries(2):
Person.objects.create(name="Aaron")
Person.objects.create(name="Daniel")
Credits
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.
History
0.1.0 (2017-12-11)
First release on PyPI.
Metadata
Release files for django-assertmaxnumqueries 0.1.2
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_assertmaxnumqueries-0.1.2.tar.gz | 14.6 kB | Without provenance | Details for django_assertmaxnumqueries-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| django_assertmaxnumqueries-0.1.2-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for django_assertmaxnumqueries-0.1.2-py2.py3-none-any.whl |
Total release size: 19.1 kB
Release files / django_assertmaxnumqueries-0.1.2.tar.gz
| Download URL | django_assertmaxnumqueries-0.1.2.tar.gz |
|---|---|
| Size | 14.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
30ce4102b54c4e33498392ab0ac37b558613285126aff1b098db174e3df6bf2b
|
|
BLAKE2b-256 checksum How to use checksums |
0c73882f39136cc4abe839880ba51360c437d482ed0eca3b1375a834a73cecaa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / django_assertmaxnumqueries-0.1.2-py2.py3-none-any.whl
| Download URL | django_assertmaxnumqueries-0.1.2-py2.py3-none-any.whl |
|---|---|
| Size | 4.6 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
324d45ced5a785a5e5fcb03bd0e5e790141ad35c98533b2ab0ad7e99e1428560
|
|
BLAKE2b-256 checksum How to use checksums |
54cfc9b0e182fb9579e90dd742d347d12a7ae62a7e0679eaf8ad278d05886a2f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for django-assertmaxnumqueries 0.1.2
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.