Skip to content

Commit

Permalink
test: fix lms tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pomegranited committed Nov 6, 2024
1 parent 42bd203 commit 664f3f7
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion openedx/core/djangoapps/content_libraries/tests/test_runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

from completion.test_utils import CompletionWaffleTestMixin
from django.db import connections, transaction
from django.test import TestCase
from django.test import TestCase, override_settings
from django.utils.text import slugify
import django.utils.translation
from organizations.models import Organization
Expand Down Expand Up @@ -243,6 +243,16 @@ def test_xblock_fields(self):
assert block_saved.display_name == 'New Display Name'


# EphemeralKeyValueStore requires a working cache, and the default test cache is a dummy cache.
@override_settings(
XBLOCK_RUNTIME_V2_EPHEMERAL_DATA_CACHE='default',
CACHES={
'default': {
'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
'LOCATION': 'edx_loc_mem_cache',
},
},
)
# We can remove the line below to enable this in Studio once we implement a session-backed
# field data store which we can use for both studio users and anonymous users
@skip_unless_lms
Expand Down

0 comments on commit 664f3f7

Please sign in to comment.