From 8e7badf1258103ce43d079cdbe7eeb97173d85a5 Mon Sep 17 00:00:00 2001 From: Oliver Falk Date: Fri, 15 Mar 2019 16:03:08 +0100 Subject: [PATCH] Adapt test, to fix test regression from commit 788116a0 --- ivatar/test_views.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ivatar/test_views.py b/ivatar/test_views.py index dbed347..cc18515 100644 --- a/ivatar/test_views.py +++ b/ivatar/test_views.py @@ -61,5 +61,8 @@ class Tester(TestCase): # pylint: disable=too-many-public-methods """ Test incorrect digest """ - response = self.client.get('/avatar/%s' % 'x'*65) - self.assertEqual(response.status_code, 200, 'no 200 ok?') + response = self.client.get('/avatar/%s' % 'x'*65, follow=True) + self.assertRedirects( + response=response, + expected_url='/static/img/deadbeef.png', + msg_prefix='Why does an invalid hash not redirect to deadbeef?')