Skip to main content
Nose Django Querycount Plugin
========================

Counts queries for each test and shows result in the end in table. XML otput
and other fancy stuff will be added later.

Installation
------------
From the source repository:

$ pip install git+git://github.com/dgladkov/nose-django-querycount.git

From PyPI:

$ pip install nose-django-querycount

Usage
------------

Currently only nose is supported, but native Django runner support is planned.
Run like following:

$ nosetests --with-querycount

Alternatively, if you use [django-nose][], add it to your Django settings
like so:

NOSE_ARGS = ['--with-querycount']
NOSE_PLUGINS = [
'nosequerycount.plugin.DjangoQueryCountPlugin',
]

Options
------------

$ nosetests --with-querycount --querycount-threshold=15

Provides query count threshold for each test. If test run exceeds 15 queries,
query count number will be red. Works only for terminal output and only if
your terminal application supports coloring.

Warning
------------

**This plugin sets DEBUG=True for tests, it can break your existing tests!**

Django test runner sets DEBUG to False when when running test, but Django
saves query log only when DEBUG mode is enabled.


[django-nose]: https://github.com/jbalogh/django-nose

Metadata

Release files for nose-django-querycount 0.3

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

Source distribution (sdist)

Source distribution for nose-django-querycount 0.3
File Size Uploaded Provenance Actions
nose-django-querycount-0.3.tar.gz 4.5 kB Without provenance Details for nose-django-querycount-0.3.tar.gz

Release files / nose-django-querycount-0.3.tar.gz

Download URL nose-django-querycount-0.3.tar.gz
Size 4.5 kB
Tags Source
SHA-256 checksum
How to use checksums
cde45d1b70821e3d99c655053389bacf67735e127609c2539caf4b8c5d99d8f1
BLAKE2b-256 checksum
How to use checksums
20112952cfef6899df0d3c517e6bb1ab16e41099e35c6ef61a13fb9c1c5c134c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for nose-django-querycount 0.3

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.3 This release

1 release file 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