Re: 'HttpResponse' object has no attribute 'url' when using Client() for tests

2014-10-16 Thread Marcus
Thanks for your answer and your assumption is correct, that's how the redirect looks. A quickfix in the test was to use a response without follow=True and response['location'] to test the redirect (which only went one step). Marcus On Wednesday, October 15, 2014 5:31:40 PM UTC+2, Tom Evans

Re: 'HttpResponse' object has no attribute 'url' when using Client() for tests

2014-10-15 Thread Tom Evans
On Wed, Oct 15, 2014 at 2:20 PM, Marcus wrote: > Hi, > > I just updated Django from an older version to 1.6.7 and some of my tests > are now failing while trying to follow redirects. > > In [1]: from django.test import Client > > In [2]: import django > > In [3]: django.VERSION > Out[3]: (1, 6, 7,

'HttpResponse' object has no attribute 'url' when using Client() for tests

2014-10-15 Thread Marcus
Hi, I just updated Django from an older version to 1.6.7 and some of my tests are now failing while trying to follow redirects. In [1]: from django.test import Client In [2]: import django In [3]: django.VERSION Out[3]: (1, 6, 7, 'final', 0) In [4]: c = Client() In [5]: r = c.get('/click/1