#5441: Add unit tests for django.contrib.formtools
------------------------+---------------------------------------------------
Reporter: adrian | Owner: simeon
Status: assigned | Component: django.contrib.formtools
Version: SVN | Resolution:
Keywords: | Stage: Accepted
Has_patch: 1 | Needs_docs: 0
Needs_tests: 0 | Needs_better_patch: 0
------------------------+---------------------------------------------------
Comment (by simeon):
As per suggestions from gdoubleu in the sprint IRC channel: I've uploaded
the output of svn diff in the django/contrib/formtools directory. I also
updated the tests to use self.assertContains() to handle string discovery
and status codes. I also refactored slightly to eliminate duplications.
Gdoubleu also suggested that test_urls.py may not be needed. I'm not very
familiar with django internals yet and based my hack on the url dispatch
process description at
http://www.djangoproject.com/documentation/url_dispatch/ - if there's a
better way to temporarily map urls->functions for the purposes of testing,
I'd be glad to pursue it...
--
Ticket URL: <http://code.djangoproject.com/ticket/5441#comment:8>
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
-~----------~----~----~----~------~----~------~--~---