#9002: Easy way to create mock Request objects for testing views
------------------------------+---------------------------------------------
 Reporter:  simon             |       Owner:  nobody    
   Status:  new               |   Milestone:  post-1.0  
Component:  Unit test system  |     Version:  1.0       
 Keywords:                    |       Stage:  Unreviewed
Has_patch:  0                 |  
------------------------------+---------------------------------------------
 The testing framework currently encourages hooking up a view function
 using a URLconf and then using the TestClient to run tests against the
 view.

 It would be nice if there was an easy way to bypass URLconf entirely in
 testing and just create a mock object representing a GET / POST / etc
 request, then pass that directly to the view function.

 See this thread: http://groups.google.com/group/django-
 developers/browse_thread/thread/db86050095ebe5db

 And this snippet: http://www.djangosnippets.org/snippets/963/

-- 
Ticket URL: <http://code.djangoproject.com/ticket/9002>
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to