#5418: Add assertNoBrokenLinks() to test system
-----------------------+----------------------------------------------------
Reporter: adrian | Owner: nobody
Status: new | Component: Unit test system
Version: SVN | Keywords:
Stage: Unreviewed | Has_patch: 0
-----------------------+----------------------------------------------------
It would be convenient and useful if the test system could automatically
check every {{{<a href>}}} in a rendered page to make sure the links did
not cause 404s.
Obviously, for pages with dozens of links, this could take a long time to
run. So I suggest an {{{only_internal}}} keyword argument, which would be
{{{True}}} by default and would cause only the *internal* links (i.e.,
those without an "https?://") to be checked, thereby using Django's
internal URL resolving to check the links instead of going over HTTP.
In the documentation for this feature, we should note that people should
ensure none of their pages have side effects, because this test will
essentially cause all links to be "clicked on."
--
Ticket URL: <http://code.djangoproject.com/ticket/5418>
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
-~----------~----~----~----~------~----~------~--~---