From ac8d91ac5e0819545a970b5ca95987064ff3b034 Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Mon, 10 Feb 2020 05:03:53 +0100 Subject: [PATCH] Correct test --- media/tests/test_templates.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/media/tests/test_templates.py b/media/tests/test_templates.py index e4ce582..b9d2e75 100644 --- a/media/tests/test_templates.py +++ b/media/tests/test_templates.py @@ -54,7 +54,7 @@ class TemplateTests(TestCase): 'admin:media_media_change', args=[self.dummy_media1.id], ), data=data) - self.assertEqual(response.status_code, 200) + self.assertEqual(response.status_code, 302) def test_media_emprunt_changelist(self): response = self.client.get(reverse('admin:media_emprunt_changelist'))