Skip to content

Instantly share code, notes, and snippets.

@philippeowagner
Created April 11, 2016 08:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save philippeowagner/f224f07cc21ee81952c4760dd3ae4b98 to your computer and use it in GitHub Desktop.
Save philippeowagner/f224f07cc21ee81952c4760dd3ae4b98 to your computer and use it in GitHub Desktop.
from django.test.client import RequestFactory
rf = RequestFactory()
get_request = rf.get('/hello/')
post_request = rf.post('/submit/', {'foo': 'bar'})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment