Top "Django-testing" questions

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

How do I modify the session in the Django test framework

My site allows individuals to contribute content in the absence of being logged in by creating a User based on …

python django django-testing django-sessions
How to use Django's assertJSONEqual to verify response of view returning JsonResponse

I'm using Python 3.4 and Django 1.7. I have a view returning JsonResponse. def add_item_to_collection(request): #(...) return JsonResponse({'status':…

python django python-3.x django-testing jsonresponse
Running django tests with sqlite

I use Postgres for production and development, but I'd like to use sqlite to run some tests. I don't see …

django django-testing
Choose test database?

I'm trying to run ./manage.py test But it tells me Got an error creating the test database: permission denied …

django postgresql django-testing webfaction
Want to disable signals in Django testing

So I have various signals and handlers which are sent across apps. However, when I perform tests / go into 'testing …

django django-testing django-signals
Problems using User model in django unit tests

I have the following django test case that is giving me errors: class MyTesting(unittest.TestCase): def setUp(self): self.…

python django unit-testing django-testing
Django test RequestFactory vs Client

I am trying to decide whether I should use Django's Client or RequestFactory to test my views. I am creating …

django unit-testing django-views django-rest-framework django-testing
Setting HTTP_REFERER header in Django test

I'm working on a Django web application which (amongst other things) needs to handle transaction status info sent using a …

django http-referer django-testing
How do I setup a unit test user for django app? The unit test can't login

I've enabled login authentication for my django app. Unit tests for views are not working because they get stuck at …

django unit-testing django-authentication django-testing
How to test custom template tags in Django?

I'm adding a set of template tags to a Django application and I'm not sure how to test them. I've …

django django-templates django-testing