Created
March 6, 2015 17:16
-
-
Save arsham/59722d844bdf98c87bf3 to your computer and use it in GitHub Desktop.
Creates a django request object for test purposes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.test.client import RequestFactory | |
factory = RequestFactory() | |
request = factory.get('/') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment