Created
April 30, 2018 07:19
-
-
Save devhero/94e50a4843251807f4a1b18c093fca82 to your computer and use it in GitHub Desktop.
django client request testing
This file contains 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 Client | |
client = Client() | |
response = client.get(some_url) | |
request = response.wsgi_request |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment