|
43 | 43 | ) |
44 | 44 | from common.djangoapps.util.testing import UrlResetMixin |
45 | 45 | from common.test.utils import MockSignalHandlerMixin, disable_signal |
46 | | -from lms.djangoapps.discussion.django_comment_client.tests.utils import ( |
47 | | - ForumsEnableMixin, |
48 | | -) |
49 | 46 | from lms.djangoapps.discussion.tests.utils import ( |
50 | 47 | make_minimal_cs_comment, |
51 | 48 | make_minimal_cs_thread, |
@@ -183,7 +180,6 @@ def _set_course_discussion_blackout(course, user_id): |
183 | 180 | @disable_signal(api, "thread_voted") |
184 | 181 | @mock.patch.dict("django.conf.settings.FEATURES", {"ENABLE_DISCUSSION_SERVICE": True}) |
185 | 182 | class CreateThreadTest( |
186 | | - ForumsEnableMixin, |
187 | 183 | UrlResetMixin, |
188 | 184 | SharedModuleStoreTestCase, |
189 | 185 | MockSignalHandlerMixin, |
@@ -601,7 +597,6 @@ def test_following(self): |
601 | 597 | new=mock.Mock(), |
602 | 598 | ) |
603 | 599 | class CreateCommentTest( |
604 | | - ForumsEnableMixin, |
605 | 600 | UrlResetMixin, |
606 | 601 | SharedModuleStoreTestCase, |
607 | 602 | MockSignalHandlerMixin, |
@@ -1039,7 +1034,6 @@ def test_invalid_field(self): |
1039 | 1034 | @disable_signal(api, "thread_voted") |
1040 | 1035 | @mock.patch.dict("django.conf.settings.FEATURES", {"ENABLE_DISCUSSION_SERVICE": True}) |
1041 | 1036 | class UpdateThreadTest( |
1042 | | - ForumsEnableMixin, |
1043 | 1037 | UrlResetMixin, |
1044 | 1038 | SharedModuleStoreTestCase, |
1045 | 1039 | MockSignalHandlerMixin, |
@@ -1699,7 +1693,6 @@ def test_update_thread_with_close_reason_code(self, role_name, closed, mock_emit |
1699 | 1693 | @disable_signal(api, "comment_voted") |
1700 | 1694 | @mock.patch.dict("django.conf.settings.FEATURES", {"ENABLE_DISCUSSION_SERVICE": True}) |
1701 | 1695 | class UpdateCommentTest( |
1702 | | - ForumsEnableMixin, |
1703 | 1696 | UrlResetMixin, |
1704 | 1697 | SharedModuleStoreTestCase, |
1705 | 1698 | MockSignalHandlerMixin, |
@@ -2303,7 +2296,6 @@ def test_update_comment_with_edit_reason_code(self, role_name, mock_emit): |
2303 | 2296 | @disable_signal(api, "thread_deleted") |
2304 | 2297 | @mock.patch.dict("django.conf.settings.FEATURES", {"ENABLE_DISCUSSION_SERVICE": True}) |
2305 | 2298 | class DeleteThreadTest( |
2306 | | - ForumsEnableMixin, |
2307 | 2299 | UrlResetMixin, |
2308 | 2300 | SharedModuleStoreTestCase, |
2309 | 2301 | MockSignalHandlerMixin, |
@@ -2482,7 +2474,6 @@ def test_group_access(self, role_name, course_is_cohorted, thread_group_state): |
2482 | 2474 | @disable_signal(api, "comment_deleted") |
2483 | 2475 | @mock.patch.dict("django.conf.settings.FEATURES", {"ENABLE_DISCUSSION_SERVICE": True}) |
2484 | 2476 | class DeleteCommentTest( |
2485 | | - ForumsEnableMixin, |
2486 | 2477 | UrlResetMixin, |
2487 | 2478 | SharedModuleStoreTestCase, |
2488 | 2479 | MockSignalHandlerMixin, |
@@ -2672,7 +2663,6 @@ def test_group_access(self, role_name, course_is_cohorted, thread_group_state): |
2672 | 2663 | @ddt.ddt |
2673 | 2664 | @mock.patch.dict("django.conf.settings.FEATURES", {"ENABLE_DISCUSSION_SERVICE": True}) |
2674 | 2665 | class RetrieveThreadTest( |
2675 | | - ForumsEnableMixin, |
2676 | 2666 | UrlResetMixin, |
2677 | 2667 | SharedModuleStoreTestCase, |
2678 | 2668 | ForumMockUtilsMixin, |
@@ -2829,7 +2819,7 @@ def test_course_id_mismatch(self): |
2829 | 2819 | @ddt.ddt |
2830 | 2820 | @mock.patch.dict("django.conf.settings.FEATURES", {"ENABLE_DISCUSSION_SERVICE": True}) |
2831 | 2821 | class GetThreadListTest( |
2832 | | - ForumsEnableMixin, ForumMockUtilsMixin, UrlResetMixin, SharedModuleStoreTestCase |
| 2822 | + ForumMockUtilsMixin, UrlResetMixin, SharedModuleStoreTestCase |
2833 | 2823 | ): |
2834 | 2824 | """Test for get_thread_list""" |
2835 | 2825 |
|
@@ -3464,7 +3454,7 @@ def test_invalid_order_direction(self): |
3464 | 3454 | @ddt.ddt |
3465 | 3455 | @mock.patch.dict("django.conf.settings.FEATURES", {"ENABLE_DISCUSSION_SERVICE": True}) |
3466 | 3456 | class GetCommentListTest( |
3467 | | - ForumsEnableMixin, SharedModuleStoreTestCase, ForumMockUtilsMixin |
| 3457 | + SharedModuleStoreTestCase, ForumMockUtilsMixin |
3468 | 3458 | ): |
3469 | 3459 | """Test for get_comment_list""" |
3470 | 3460 |
|
@@ -4235,7 +4225,7 @@ def test_other_providers_ordering_error(self): |
4235 | 4225 |
|
4236 | 4226 | @mock.patch.dict("django.conf.settings.FEATURES", {"DISABLE_START_DATES": False}) |
4237 | 4227 | @mock.patch.dict("django.conf.settings.FEATURES", {"ENABLE_DISCUSSION_SERVICE": True}) |
4238 | | -class GetCourseTopicsTest(ForumMockUtilsMixin, ForumsEnableMixin, UrlResetMixin, ModuleStoreTestCase): |
| 4228 | +class GetCourseTopicsTest(ForumMockUtilsMixin, UrlResetMixin, ModuleStoreTestCase): |
4239 | 4229 | """Test for get_course_topics""" |
4240 | 4230 | @mock.patch.dict("django.conf.settings.FEATURES", {"ENABLE_DISCUSSION_SERVICE": True}) |
4241 | 4231 | def setUp(self): |
@@ -4673,7 +4663,7 @@ def test_discussion_topic(self): |
4673 | 4663 | @override_settings(DISCUSSION_MODERATION_EDIT_REASON_CODES={"test-edit-reason": "Test Edit Reason"}) |
4674 | 4664 | @override_settings(DISCUSSION_MODERATION_CLOSE_REASON_CODES={"test-close-reason": "Test Close Reason"}) |
4675 | 4665 | @ddt.ddt |
4676 | | -class GetCourseTest(ForumsEnableMixin, UrlResetMixin, SharedModuleStoreTestCase): |
| 4666 | +class GetCourseTest(UrlResetMixin, SharedModuleStoreTestCase): |
4677 | 4667 | """Test for get_course""" |
4678 | 4668 | @classmethod |
4679 | 4669 | def setUpClass(cls): |
@@ -4754,7 +4744,7 @@ def test_privileged_roles(self, role): |
4754 | 4744 |
|
4755 | 4745 | @ddt.ddt |
4756 | 4746 | @mock.patch.dict("django.conf.settings.FEATURES", {"ENABLE_DISCUSSION_SERVICE": True}) |
4757 | | -class GetCourseTestBlackouts(ForumsEnableMixin, UrlResetMixin, ModuleStoreTestCase): |
| 4747 | +class GetCourseTestBlackouts(UrlResetMixin, ModuleStoreTestCase): |
4758 | 4748 | """ |
4759 | 4749 | Tests of get_course for courses that have blackout dates. |
4760 | 4750 | """ |
|
0 commit comments