Skip to content

Commit

Permalink
test: fix weird failure in CI only
Browse files Browse the repository at this point in the history
  • Loading branch information
navinkarkera committed Feb 8, 2025
1 parent 8287feb commit e4ad89d
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions cms/djangoapps/contentstore/tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
from edx_toggles.toggles.testutils import override_waffle_flag
from opaque_keys.edx.keys import CourseKey
from opaque_keys.edx.locator import CourseLocator, LibraryLocator
from openedx_events.tests.utils import OpenEdxEventsTestMixin
from path import Path as path
from pytz import UTC
from rest_framework import status
Expand All @@ -31,10 +32,13 @@
from xmodule.modulestore.tests.django_utils import ( # lint-amnesty, pylint: disable=wrong-import-order
TEST_DATA_SPLIT_MODULESTORE,
ModuleStoreTestCase,
SharedModuleStoreTestCase
SharedModuleStoreTestCase,
)
from xmodule.modulestore.tests.factories import CourseFactory, BlockFactory # lint-amnesty, pylint: disable=wrong-import-order
from xmodule.partitions.partitions import Group, UserPartition # lint-amnesty, pylint: disable=wrong-import-order
from xmodule.modulestore.tests.factories import (
BlockFactory,
CourseFactory,
)
from xmodule.partitions.partitions import Group, UserPartition


class LMSLinksTestCase(TestCase):
Expand Down Expand Up @@ -935,10 +939,13 @@ def test_update_course_details_instructor_paced(self, mock_update):


@override_waffle_flag(ENABLE_NOTIFICATIONS, active=True)
class CourseUpdateNotificationTests(ModuleStoreTestCase):
class CourseUpdateNotificationTests(OpenEdxEventsTestMixin, ModuleStoreTestCase):
"""
Unit tests for the course_update notification.
"""
ENABLED_OPENEDX_EVENTS = [
"org.openedx.learning.course.notification.requested.v1",
]

def setUp(self):
"""
Expand Down

0 comments on commit e4ad89d

Please sign in to comment.