Adapt test, to fix test regression from commit 788116a0

This commit is contained in:
Oliver Falk
2019-03-15 16:03:08 +01:00
parent 788116a06f
commit 8e7badf125

View File

@@ -61,5 +61,8 @@ class Tester(TestCase): # pylint: disable=too-many-public-methods
""" """
Test incorrect digest Test incorrect digest
""" """
response = self.client.get('/avatar/%s' % 'x'*65) response = self.client.get('/avatar/%s' % 'x'*65, follow=True)
self.assertEqual(response.status_code, 200, 'no 200 ok?') self.assertRedirects(
response=response,
expected_url='/static/img/deadbeef.png',
msg_prefix='Why does an invalid hash not redirect to deadbeef?')