#7611: auth app PasswordResetTest requires admin app to be installed
---------------------------------------+------------------------------------
Reporter: andrewbadr | Owner: nobody
Status: new | Milestone: 1.0
Component: Unit test system | Version: SVN
Resolution: | Keywords:
Stage: Accepted | Has_patch: 0
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
---------------------------------------+------------------------------------
Comment (by russellm):
The problem isn't that admin is required - it's that the test requires
templates that may not be available. Admin just happens to provide those
templates.
I suspect what is needed here is a 'templates' attribute on TestCase,
similar to the newly added 'urls' attribute:
{{{
class MyTestCase(TestCase):
fixtures = ['testdata.json']
urls = 'test.urls'
templates = {
'registration/password_reset_form.html': ' ...template content
here...'
}
def test_stuff(self):
# do test here
}}}
The TestCase would then install a simple template loader to extract the
templates from the text.
--
Ticket URL: <http://code.djangoproject.com/ticket/7611#comment:2>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---