Merge pull request #19102 from edx/youngstrom/cms-remove-ratelimit
Fix flaky TestUserPreferenceMiddleware tests for xdist
This commit is contained in:
@@ -14,6 +14,7 @@ from django.http import HttpResponse
|
||||
from django.contrib.sessions.middleware import SessionMiddleware
|
||||
from django.utils.translation import LANGUAGE_SESSION_KEY
|
||||
from django.utils.translation.trans_real import parse_accept_lang_header
|
||||
from openedx.core.djangolib.testing.utils import CacheIsolationTestCase
|
||||
|
||||
from openedx.core.djangoapps.lang_pref import LANGUAGE_KEY, COOKIE_DURATION
|
||||
from openedx.core.djangoapps.lang_pref.middleware import LanguagePreferenceMiddleware
|
||||
@@ -23,7 +24,7 @@ from student.tests.factories import AnonymousUserFactory
|
||||
|
||||
|
||||
@ddt.ddt
|
||||
class TestUserPreferenceMiddleware(TestCase):
|
||||
class TestUserPreferenceMiddleware(CacheIsolationTestCase):
|
||||
"""
|
||||
Tests to make sure user preferences are getting properly set in the middleware.
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user