22from django .test import TestCase , override_settings
33from django .urls import reverse
44from django .utils .http import urlencode
5-
65from wagtail .models import Page
7-
8- from tests .testapp .models import HeadlessPage , SimplePage
96from wagtail_headless_preview .models import PagePreview
107from wagtail_headless_preview .settings import headless_preview_settings
118
9+ from tests .testapp .models import HeadlessPage , SimplePage
10+
1211
1312class TestFrontendViews (TestCase ):
1413 fixtures = ["test.json" ]
1514
1615 @classmethod
1716 def setUpTestData (cls ):
1817 cls .admin_user = User .objects .create_superuser (
19- username = "admin" ,
email = "[email protected] " ,
password = "password" 18+ username = "admin" ,
19+ 20+ password = "password" , # noqa: S106
2021 )
2122
2223 cls .homepage = Page .objects .get (url_path = "/home/" ).specific
@@ -30,7 +31,9 @@ def setUpTestData(cls):
3031 cls .page .save_revision ()
3132
3233 def setUp (self ):
33- self .client .login (username = self .admin_user .username , password = "password" )
34+ self .client .login (
35+ username = self .admin_user .username , password = "password" # noqa: S106
36+ )
3437
3538 def test_view (self ):
3639 self .assertEqual (PagePreview .objects .count (), 0 )
@@ -117,7 +120,9 @@ class TestHeadlessRedirectMixin(TestCase):
117120 @classmethod
118121 def setUpTestData (cls ):
119122 cls .admin_user = User .objects .create_superuser (
120- username = "admin" ,
email = "[email protected] " ,
password = "password" 123+ username = "admin" ,
124+ 125+ password = "password" , # noqa: S106
121126 )
122127
123128 cls .homepage = Page .objects .get (url_path = "/home/" ).specific
0 commit comments