Skip to content
Snippets Groups Projects
Unverified Commit e2d52356 authored by Michael Youngstrom's avatar Michael Youngstrom Committed by GitHub
Browse files

Merge pull request #19102 from edx/youngstrom/cms-remove-ratelimit

Fix flaky TestUserPreferenceMiddleware tests for xdist
parents f9d3d641 3da94170
No related branches found
No related tags found
No related merge requests found
......@@ -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.
"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment