mirror of
https://github.com/django/django.git
synced 2025-08-04 19:08:28 +00:00
Fixed #26175 -- Removed SHA1 password hashes in tests.
This commit is contained in:
parent
f8e865d78f
commit
015fad9060
25 changed files with 220 additions and 832 deletions
|
@ -68,8 +68,8 @@ class FlatpageViewTests(TestDataMixin, TestCase):
|
|||
"A flatpage served through a view can require authentication"
|
||||
response = self.client.get('/flatpage_root/sekrit/')
|
||||
self.assertRedirects(response, '/accounts/login/?next=/flatpage_root/sekrit/')
|
||||
User.objects.create_user('testuser', 'test@example.com', 's3krit')
|
||||
self.client.login(username='testuser', password='s3krit')
|
||||
user = User.objects.create_user('testuser', 'test@example.com', 's3krit')
|
||||
self.client.force_login(user)
|
||||
response = self.client.get('/flatpage_root/sekrit/')
|
||||
self.assertContains(response, "<p>Isn't it sekrit!</p>")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue