Merge pull request #19452 from edx/REVE-132

Ensure masquerade works in courses that haven't started yet
This commit is contained in:
Matthew Piatetsky
2018-12-19 09:58:18 -05:00
committed by GitHub
7 changed files with 12 additions and 26 deletions

View File

@@ -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 _

View File

@@ -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')