1. Stephen McDonald
  2. django-shotgun

Commits

Stephen McDonald  committed c997130

Make GET and POST follow redirects.

  • Participants
  • Parent commits 4dbea18
  • Branches default

Comments (0)

Files changed (1)

File django_shotgun/tests.py

View file
             # Build a list of responses, since a form URL will be tested 
             # more than once via POST and GET.
             if not data:
-                responses = [self.client.get(url)]
+                responses = [self.client.get(url, follow=True)]
             else:
                 responses = [
-                    self.client.get(url, data=data), 
-                    self.client.post(url, data=data),
+                    self.client.get(url, data=data, follow=True), 
+                    self.client.post(url, data=data, follow=True),
                 ]
             urls = []
             forms = []