Skip to content

Commit

Permalink
test: fixes failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
pomegranited committed Aug 29, 2024
1 parent 6ded8a9 commit 0d8079c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions openedx/core/djangoapps/content_libraries/tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,18 @@ class ContentLibraryCollectionsTest(ContentLibrariesRestApiTest, OpenEdxEventsTe
CONTENT_OBJECT_TAGS_CHANGED.event_type,
]

@classmethod
def setUpClass(cls):
"""
Set up class method for the Test class.
TODO: It's unclear why we need to call start_events_isolation ourselves rather than relying on
OpenEdxEventsTestMixin.setUpClass to handle it. It fails it we don't, and many other test cases do it,
so we're following a pattern here. But that pattern doesn't really make sense.
"""
super().setUpClass()
cls.start_events_isolation()

def setUp(self):
super().setUp()

Expand Down

0 comments on commit 0d8079c

Please sign in to comment.