From daf827a3ffb2cfc9656d60a26f2566167c54e1e8 Mon Sep 17 00:00:00 2001 From: Omar Al-Ithawi Date: Thu, 25 Jul 2024 14:03:31 +0300 Subject: [PATCH] test: skip Redwood-only cherry picked tests for Course Recommendation API --- .../learner_dashboard/api/v0/tests/test_views.py | 8 +++++++- lms/djangoapps/learner_home/recommendations/test_views.py | 6 ++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/lms/djangoapps/learner_dashboard/api/v0/tests/test_views.py b/lms/djangoapps/learner_dashboard/api/v0/tests/test_views.py index 7a51f4680d35..886f543156ec 100644 --- a/lms/djangoapps/learner_dashboard/api/v0/tests/test_views.py +++ b/lms/djangoapps/learner_dashboard/api/v0/tests/test_views.py @@ -1,7 +1,7 @@ """ Unit tests for Learner Dashboard REST APIs and Views """ - +import unittest from unittest import mock from uuid import uuid4 @@ -11,6 +11,8 @@ from django.urls import reverse_lazy from edx_toggles.toggles.testutils import override_waffle_flag from enterprise.models import EnterpriseCourseEnrollment + +from openedx.core.release import RELEASE_LINE from xmodule.modulestore.tests.django_utils import SharedModuleStoreTestCase from xmodule.modulestore.tests.factories import ( CourseFactory as ModuleStoreCourseFactory, @@ -244,6 +246,10 @@ def test_program_empty_list_if_no_enterprise_enrollments(self): @ddt.ddt +@unittest.skipIf( + RELEASE_LINE == "palm", + 'Omar note: This is mostly a Redwood test that got here through cherry-picks', +) class TestCourseRecommendationApiView(TestCase): """Unit tests for the course recommendations on dashboard page.""" diff --git a/lms/djangoapps/learner_home/recommendations/test_views.py b/lms/djangoapps/learner_home/recommendations/test_views.py index 9edf9002eefe..fc3e13bd2c7f 100644 --- a/lms/djangoapps/learner_home/recommendations/test_views.py +++ b/lms/djangoapps/learner_home/recommendations/test_views.py @@ -3,6 +3,7 @@ """ import json +import unittest from unittest import mock from unittest.mock import Mock @@ -19,9 +20,14 @@ from lms.djangoapps.learner_home.recommendations.waffle import ( ENABLE_LEARNER_HOME_AMPLITUDE_RECOMMENDATIONS, ) +from openedx.core.release import RELEASE_LINE @ddt.ddt +@unittest.skipIf( + RELEASE_LINE == "palm", + 'Omar note: This is mostly a Redwood test that got here through cherry-picks', +) class TestCourseRecommendationApiView(TestCase): """Unit tests for the course recommendations on learner home page."""