~netlandish/django-wiki

8d31e06225aab419a6a19e52f2b2821047f7f79c — Mads Jensen 5 years ago aa5f056
stuff
1 files changed, 7 insertions(+), 0 deletions(-)

M tests/plugins/notifications/test_views.py
M tests/plugins/notifications/test_views.py => tests/plugins/notifications/test_views.py +7 -0
@@ 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'))