fix: changes suggested in code review

Cleaned up the nits.
This commit is contained in:
cdeery
2021-08-05 12:35:54 -04:00
parent 35caeb4036
commit eafea504ac

View File

@@ -176,7 +176,7 @@ class MasqueradeTestCase(SharedModuleStoreTestCase, LoginEnrollmentTestCase, Mas
"""
Verifies if learner masquerade option is available
Args:
exists: True to test if Learner is in options, False to test it is NOT
learner_option_expected: True to test if Learner is in options, False to test it is NOT
"""
response = self.get_available_masquerade_identities()
items = response.json()['available']
@@ -247,8 +247,8 @@ class TestMasqueradeOptionsForUserPartition(StaffMasqueradeTestCase):
"""
Check that 'Learner' option is NOT available if there are no groups or partitions
"""
@ patch.dict('django.conf.settings.FEATURES', {'ENABLE_ENROLLMENT_TRACK_USER_PARTITION': True})
@ patch.dict('django.conf.settings.FEATURES', {'ENABLE_MASQUERADE': True})
@ patch.dict('django.conf.settings.FEATURES', {'ENABLE_ENROLLMENT_TRACK_USER_PARTITION': True})
def test_masquerade_options_no_cohort(self):
self.verify_learner_masquerade_available(False)