Ticket #10747: 10747v3.diff

File 10747v3.diff, 1.4 KB (added by Matthew Flanagan <mattimustang@…>, 6 years ago)

real fix

  • django/contrib/auth/tests/views.py

     
    189189    fixtures = ['authtestdata.json']
    190190    urls = 'django.contrib.auth.tests.urls'
    191191
     192    def setUp(self):
     193        self.old_TEMPLATE_DIRS = settings.TEMPLATE_DIRS
     194        settings.TEMPLATE_DIRS = (
     195            os.path.join(
     196                os.path.dirname(__file__),
     197                'templates'
     198            )
     199        ,)
     200
     201    def tearDown(self):
     202        settings.TEMPLATE_DIRS = self.old_TEMPLATE_DIRS
     203
    192204    def login(self, password='password'):
    193205        response = self.client.post('/login/', {
    194206            'username': 'testclient',
     
    232244        response = self.client.get('/logout/custom_query/?follow=/somewhere/')
    233245        self.assertEqual(response.status_code, 302)
    234246        self.assert_(response['Location'].endswith('/somewhere/'))
    235         self.confirm_logged_out()
    236  No newline at end of file
     247        self.confirm_logged_out()
  • django/contrib/auth/tests/templates/registration/logged_out.html

     
     1Logged out
Back to Top