Loading django/contrib/auth/tests/context_processors.py +3 −2 Original line number Diff line number Diff line Loading @@ -63,6 +63,7 @@ class PermWrapperTests(TestCase): @skipIfCustomUser @override_settings( TEMPLATE_LOADERS=('django.template.loaders.filesystem.Loader',), TEMPLATE_DIRS=( os.path.join(os.path.dirname(upath(__file__)), 'templates'), ), Loading django/contrib/auth/tests/forms.py +15 −11 Original line number Diff line number Diff line Loading @@ -341,9 +341,13 @@ class PasswordResetFormTest(TestCase): self.assertTrue(form.is_valid()) self.assertEqual(form.cleaned_data['email'], email) @override_settings( TEMPLATE_LOADERS=('django.template.loaders.filesystem.Loader',), TEMPLATE_DIRS=( os.path.join(os.path.dirname(upath(__file__)), 'templates'), ), ) def test_custom_email_subject(self): template_path = os.path.join(os.path.dirname(upath(__file__)), 'templates') with self.settings(TEMPLATE_DIRS=(template_path,)): data = {'email': 'testclient@example.com'} form = PasswordResetForm(data) self.assertTrue(form.is_valid()) Loading Loading
django/contrib/auth/tests/context_processors.py +3 −2 Original line number Diff line number Diff line Loading @@ -63,6 +63,7 @@ class PermWrapperTests(TestCase): @skipIfCustomUser @override_settings( TEMPLATE_LOADERS=('django.template.loaders.filesystem.Loader',), TEMPLATE_DIRS=( os.path.join(os.path.dirname(upath(__file__)), 'templates'), ), Loading
django/contrib/auth/tests/forms.py +15 −11 Original line number Diff line number Diff line Loading @@ -341,9 +341,13 @@ class PasswordResetFormTest(TestCase): self.assertTrue(form.is_valid()) self.assertEqual(form.cleaned_data['email'], email) @override_settings( TEMPLATE_LOADERS=('django.template.loaders.filesystem.Loader',), TEMPLATE_DIRS=( os.path.join(os.path.dirname(upath(__file__)), 'templates'), ), ) def test_custom_email_subject(self): template_path = os.path.join(os.path.dirname(upath(__file__)), 'templates') with self.settings(TEMPLATE_DIRS=(template_path,)): data = {'email': 'testclient@example.com'} form = PasswordResetForm(data) self.assertTrue(form.is_valid()) Loading