id summary reporter owner description type status component version severity resolution keywords cc stage has_patch needs_docs needs_tests needs_better_patch easy ui_ux 9002 Easy way to create mock Request objects for testing views simon Kevin Kubasik "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/" Uncategorized closed Testing framework 1.0 Normal fixed Accepted 0 0 0 0 0 0