Loading docs/topics/testing/advanced.txt +2 −0 Original line number Diff line number Diff line Loading @@ -40,6 +40,8 @@ The following is a simple unit test using the request factory:: from django.contrib.auth.models import AnonymousUser, User from django.test import TestCase, RequestFactory from .views import my_view class SimpleTest(TestCase): def setUp(self): # Every test needs access to the request factory. Loading Loading
docs/topics/testing/advanced.txt +2 −0 Original line number Diff line number Diff line Loading @@ -40,6 +40,8 @@ The following is a simple unit test using the request factory:: from django.contrib.auth.models import AnonymousUser, User from django.test import TestCase, RequestFactory from .views import my_view class SimpleTest(TestCase): def setUp(self): # Every test needs access to the request factory. Loading