From 57170b55bea4b4692ff8a25ff80f00baf1dba0c9 Mon Sep 17 00:00:00 2001 From: PCoder Date: Sat, 25 Nov 2017 20:02:41 +0100 Subject: [PATCH] Update site_name used in PasswordResetViewMixin --- hosting/test_views.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/hosting/test_views.py b/hosting/test_views.py index 9b1b1572..0af04f9a 100644 --- a/hosting/test_views.py +++ b/hosting/test_views.py @@ -541,10 +541,11 @@ class PasswordResetViewTest(BaseTestCase): self.assertEqual(response.status_code, 200) def test_test_generate_email_context(self): - context = self.setup_view(self.view()).\ - test_generate_email_context(self.user) + context = self.setup_view(self.view()).test_generate_email_context( + self.user + ) self.assertEqual(context.get('user'), self.user) - self.assertEqual(context.get('site_name'), 'ungleich') + self.assertEqual(context.get('site_name'), settings.DCL_TEXT) self.assertEqual(len(context.get('token')), 24)