Skip to main content

pytest-django-sqlcount

Downloads Latest Version License

This plugin adds the number of SQLs executed on the default database connection per test to the terminal report.

All features offered by the default py.test terminal plugin should be available.

Installation

Install with pip:

pip install pytest-django-sqlcount

Uninstallation

Uninstall with pip:

pip uninstall pytest-django-sqlcount

Usage

Running tests with SQLCount output:

py.test --sqlcount myproj tests/

Limitation

Keep in mind that test factories and fixtures can create more SQLs than the tested method/function. SQLs created by those methods are included in the count.

Metadata

Release files for pytest-django-sqlcounts 0.1.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 pytest-django-sqlcounts 0.1.0
File Size Uploaded Provenance Actions
pytest-django-sqlcounts-0.1.0.tar.gz 3.0 kB Without provenance Details for pytest-django-sqlcounts-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pytest-django-sqlcounts 0.1.0
File Interpreter ABI Platform Actions
pytest_django_sqlcounts-0.1.0-py2.py3-none-any.whl Python 3, Python 2 none any Details for pytest_django_sqlcounts-0.1.0-py2.py3-none-any.whl

Total release size: 7.5 kB

Release files / pytest-django-sqlcounts-0.1.0.tar.gz

Download URL pytest-django-sqlcounts-0.1.0.tar.gz
Size 3.0 kB
Tags Source
SHA-256 checksum
How to use checksums
2c0e1eaedb660db53dc894e8db7677f15958cbe9d242375450e5d3185f9d0c46
BLAKE2b-256 checksum
How to use checksums
0761278e619c6aae6f6cc18760f7fa7d03f959ea3927c684330f6bc3930b8be4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / pytest_django_sqlcounts-0.1.0-py2.py3-none-any.whl

Download URL pytest_django_sqlcounts-0.1.0-py2.py3-none-any.whl
Size 4.5 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
b05fc2034b813ff1fe83598f69041c816ccc57743c705f1cc9bbc7f7e40cdbff
BLAKE2b-256 checksum
How to use checksums
c88e70e7ebd2ea60f09ec877e0afbfbf6ae7e67c850c47d6edc64573b6a10c79
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for pytest-django-sqlcounts 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.

Release history Release notifications | RSS feed

This release

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