Reenable Learning Sequence MFE redirect tests

TNL-7157 These tests may were the cause of intermittent test failures a couple weeks ago. Here they are reenabled after changing the way ExperimentWaffleFlag is overridden.
This commit is contained in:
Adam Butterworth
2020-04-10 14:59:46 -04:00
parent 468e19262a
commit f5f6fc49ba
2 changed files with 16 additions and 13 deletions

View File

@@ -178,4 +178,8 @@ class ExperimentWaffleFlag(CourseWaffleFlag):
if not active:
bucket = 0
with patch.object(self, 'get_bucket', return_value=bucket):
yield
# TODO We can move this import to the top of the file once this code is
# not all contained within the __init__ module.
from openedx.core.djangoapps.waffle_utils.testutils import override_waffle_flag
with override_waffle_flag(self, active):
yield