Sometimes redirs are hard to test :-/

This commit is contained in:
Oliver Falk
2020-02-24 12:28:58 +01:00
parent 7544fc142a
commit a2d4671724

View File

@@ -1225,10 +1225,12 @@ class Tester(TestCase): # pylint: disable=too-many-public-methods
)
)
url = '%s?%s' % (urlobj.path, urlobj.query)
response = self.client.get(url, follow=True)
response = self.client.get(url, follow=False)
self.assertRedirects(
response=response,
expected_url='/gravatarproxy/1b1d0b654430c012e47e350db07c83c5?s=80&default=mm',
status_code=302,
target_status_code=200,
msg_prefix='Why does this not redirect to the gravatarproxy and defaulting to mm?')
# Eventually one should check if the data is the same