Skip to content

Commit

Permalink
test: skip Redwood-only cherry picked tests for Course Recommendation…
Browse files Browse the repository at this point in the history
… API
  • Loading branch information
OmarIthawi committed Jul 25, 2024
1 parent 1754c44 commit daf827a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lms/djangoapps/learner_dashboard/api/v0/tests/test_views.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""
Unit tests for Learner Dashboard REST APIs and Views
"""

import unittest
from unittest import mock
from uuid import uuid4

Expand All @@ -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,
Expand Down Expand Up @@ -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."""

Expand Down
6 changes: 6 additions & 0 deletions lms/djangoapps/learner_home/recommendations/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"""

import json
import unittest
from unittest import mock
from unittest.mock import Mock

Expand All @@ -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."""

Expand Down

0 comments on commit daf827a

Please sign in to comment.