From 0d8079c23f68a4ae0fc421e42f1bc93166ee546c Mon Sep 17 00:00:00 2001 From: Jillian Vogel Date: Thu, 29 Aug 2024 14:32:15 +0930 Subject: [PATCH] test: fixes failing test --- .../djangoapps/content_libraries/tests/test_api.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/openedx/core/djangoapps/content_libraries/tests/test_api.py b/openedx/core/djangoapps/content_libraries/tests/test_api.py index 4f89a9c833f3..0c373f285055 100644 --- a/openedx/core/djangoapps/content_libraries/tests/test_api.py +++ b/openedx/core/djangoapps/content_libraries/tests/test_api.py @@ -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()