Top "Django-testing" questions

Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design.

ImportError: Failed to import test module:

im having an issue with a tutorial im following. we have gotten to the point of testing and i continue …

django django-models django-testing django-settings
Django: is there a way to count SQL queries from an unit test?

I am trying to find out the number of queries executed by a utility function. I have written a unit …

django django-orm django-testing
Specify Django Test Database names in settings.py

I'm specifying the databases using a python object: DATABASES = { 'default':{ 'ENGINE':'mysql', 'NAME':'testsqldb', 'USER':'<username>', …

django testing settings django-testing django-settings
Using Basic HTTP access authentication in Django testing framework

For some of my Django views I've created a decorator that performs Basic HTTP access authentication. However, while writing test …

python django unit-testing http-authentication django-testing
How can I unit test django messages?

In my django application, I'm trying to write a unit test that performs an action and then checks the messages …

python django unit-testing django-testing
Mocking a Django Queryset in order to test a function that takes a queryset

I have a utility function in my Django project, it takes a queryset, gets some data from it and returns …

python django unit-testing django-queryset django-testing
Django tests - patch object in all tests

I need to create some kind of MockMixin for my tests. It should include mocks for everything that calls external …

python django unit-testing django-testing python-mock
Detect django testing mode

I'm writing a reusable django app and I need to ensure that its models are only sync'ed when the app …

django unit-testing django-testing
How do I test Django QuerySets are equal?

I am trying to test my Django views. This view passes a QuerySet to the template: def merchant_home(request, …

python django django-queryset django-testing
How to test login process?

I am developing a web application using Django 1.6 where I require users to log in using my login form. I …

django validation django-forms django-authentication django-testing