Skip to content

sophilabs/django-test-query-counter

Repository files navigation

Django Test Query Counter

https://travis-ci.org/igui/django-test-query-counter

.svg?branch=master
target:https://travis-ci.org/igui/django-test-query-counter

https://codecov.io/gh/igui/django-test-query-counter/branch/master

/graph/badge.svg
target:https://codecov.io/gh/igui/django-test-query-counter

A Django Toolkit for controlling Query count when testing

Documentation

The full documentation is at https://django-test-query-counter.readthedocs.io.

Quickstart

Install Django Test Query Counter:

pip install django-request-query-count

Add it to your INSTALLED_APPS:

INSTALLED_APPS = (
    ...
    'request_query_count',
    ...
)

Add Django Test Query Counter's URL patterns:

from test_query_counter import urls as test_query_counter_urls


urlpatterns = [
    ...
    url(r'^', include(test_query_counter_urls)),
    ...
]

Features

  • TODO

Running Tests

Does the code actually work?

source <YOURVIRTUALENV>/bin/activate
(myenv) $ pip install tox
(myenv) $ tox

Credits

Tools used in rendering this package:

About

A Django toolkit for controlling query count when testing.

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •