File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed
learner_dashboard/api/v0/tests
learner_home/recommendations Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 1
1
"""
2
2
Unit tests for Learner Dashboard REST APIs and Views
3
3
"""
4
-
4
+ import unittest
5
5
from unittest import mock
6
6
from uuid import uuid4
7
7
11
11
from django .urls import reverse_lazy
12
12
from edx_toggles .toggles .testutils import override_waffle_flag
13
13
from enterprise .models import EnterpriseCourseEnrollment
14
+
15
+ from openedx .core .release import RELEASE_LINE
14
16
from xmodule .modulestore .tests .django_utils import SharedModuleStoreTestCase
15
17
from xmodule .modulestore .tests .factories import (
16
18
CourseFactory as ModuleStoreCourseFactory ,
@@ -244,6 +246,10 @@ def test_program_empty_list_if_no_enterprise_enrollments(self):
244
246
245
247
246
248
@ddt .ddt
249
+ @unittest .skipIf (
250
+ RELEASE_LINE == "palm" ,
251
+ 'Omar note: This is mostly a Redwood test that got here through cherry-picks' ,
252
+ )
247
253
class TestCourseRecommendationApiView (TestCase ):
248
254
"""Unit tests for the course recommendations on dashboard page."""
249
255
Original file line number Diff line number Diff line change 3
3
"""
4
4
5
5
import json
6
+ import unittest
6
7
from unittest import mock
7
8
from unittest .mock import Mock
8
9
19
20
from lms .djangoapps .learner_home .recommendations .waffle import (
20
21
ENABLE_LEARNER_HOME_AMPLITUDE_RECOMMENDATIONS ,
21
22
)
23
+ from openedx .core .release import RELEASE_LINE
22
24
23
25
24
26
@ddt .ddt
27
+ @unittest .skipIf (
28
+ RELEASE_LINE == "palm" ,
29
+ 'Omar note: This is mostly a Redwood test that got here through cherry-picks' ,
30
+ )
25
31
class TestCourseRecommendationApiView (TestCase ):
26
32
"""Unit tests for the course recommendations on learner home page."""
27
33
You can’t perform that action at this time.
0 commit comments