mirror of
https://git.linux-kernel.at/oliver/ivatar.git
synced 2025-11-18 14:08:04 +00:00
Sometimes redirs are hard to test :-/
This commit is contained in:
@@ -1225,10 +1225,12 @@ class Tester(TestCase): # pylint: disable=too-many-public-methods
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
url = '%s?%s' % (urlobj.path, urlobj.query)
|
url = '%s?%s' % (urlobj.path, urlobj.query)
|
||||||
response = self.client.get(url, follow=True)
|
response = self.client.get(url, follow=False)
|
||||||
self.assertRedirects(
|
self.assertRedirects(
|
||||||
response=response,
|
response=response,
|
||||||
expected_url='/gravatarproxy/1b1d0b654430c012e47e350db07c83c5?s=80&default=mm',
|
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?')
|
msg_prefix='Why does this not redirect to the gravatarproxy and defaulting to mm?')
|
||||||
# Eventually one should check if the data is the same
|
# Eventually one should check if the data is the same
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user