Skip to content

Commit daf827a

Browse files
committed
test: skip Redwood-only cherry picked tests for Course Recommendation API
1 parent 1754c44 commit daf827a

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

lms/djangoapps/learner_dashboard/api/v0/tests/test_views.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
22
Unit tests for Learner Dashboard REST APIs and Views
33
"""
4-
4+
import unittest
55
from unittest import mock
66
from uuid import uuid4
77

@@ -11,6 +11,8 @@
1111
from django.urls import reverse_lazy
1212
from edx_toggles.toggles.testutils import override_waffle_flag
1313
from enterprise.models import EnterpriseCourseEnrollment
14+
15+
from openedx.core.release import RELEASE_LINE
1416
from xmodule.modulestore.tests.django_utils import SharedModuleStoreTestCase
1517
from xmodule.modulestore.tests.factories import (
1618
CourseFactory as ModuleStoreCourseFactory,
@@ -244,6 +246,10 @@ def test_program_empty_list_if_no_enterprise_enrollments(self):
244246

245247

246248
@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+
)
247253
class TestCourseRecommendationApiView(TestCase):
248254
"""Unit tests for the course recommendations on dashboard page."""
249255

lms/djangoapps/learner_home/recommendations/test_views.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"""
44

55
import json
6+
import unittest
67
from unittest import mock
78
from unittest.mock import Mock
89

@@ -19,9 +20,14 @@
1920
from lms.djangoapps.learner_home.recommendations.waffle import (
2021
ENABLE_LEARNER_HOME_AMPLITUDE_RECOMMENDATIONS,
2122
)
23+
from openedx.core.release import RELEASE_LINE
2224

2325

2426
@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+
)
2531
class TestCourseRecommendationApiView(TestCase):
2632
"""Unit tests for the course recommendations on learner home page."""
2733

0 commit comments

Comments
 (0)