Merge pull request #19452 from edx/REVE-132
Ensure masquerade works in courses that haven't started yet
This commit is contained in:
@@ -5,7 +5,6 @@ and course access based on these limits.
|
||||
"""
|
||||
from datetime import timedelta
|
||||
|
||||
from django.apps import apps
|
||||
from django.utils import timezone
|
||||
from django.utils.translation import get_language, ugettext as _
|
||||
|
||||
|
||||
@@ -641,8 +641,8 @@ class TestCourseOutlinePreview(SharedModuleStoreTestCase):
|
||||
self.assertEqual(response.status_code, 200)
|
||||
self.assertContains(response, 'Future Chapter')
|
||||
|
||||
# Verify that staff masquerading as a learner does not see the future chapter.
|
||||
# Verify that staff masquerading as a learner see the future chapter.
|
||||
self.update_masquerade(course, role='student')
|
||||
response = self.client.get(url)
|
||||
self.assertEqual(response.status_code, 200)
|
||||
self.assertNotContains(response, 'Future Chapter')
|
||||
self.assertContains(response, 'Future Chapter')
|
||||
|
||||
Reference in New Issue
Block a user