From 8d31e06225aab419a6a19e52f2b2821047f7f79c Mon Sep 17 00:00:00 2001 From: Mads Jensen Date: Mon, 7 Oct 2019 16:55:25 +0200 Subject: [PATCH] stuff --- tests/plugins/notifications/test_views.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/plugins/notifications/test_views.py b/tests/plugins/notifications/test_views.py index 9b9ed9b5..e3681c75 100644 --- a/tests/plugins/notifications/test_views.py +++ b/tests/plugins/notifications/test_views.py @@ -1,10 +1,17 @@ +import pdb + from django.shortcuts import resolve_url +from django_nyt.models import Settings from tests.base import RequireRootArticleMixin, ArticleWebTestUtils, DjangoClientTestBase class NotificationSettingsTests(RequireRootArticleMixin, ArticleWebTestUtils, DjangoClientTestBase): + def setUp(self): + super().setUp() + self.settings = Settings.objects.get_or_create(user=self.superuser1, is_default=True) + def test_login_required(self): self.client.logout() response = self.client.get(resolve_url('wiki:notification_settings')) -- 2.45.2