Skip to content

Commit

Permalink
fix: add missing CEA definition and fix imports in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tecoholic committed May 26, 2023
1 parent 2be191d commit 6e74b8b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions enterprise/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@
from common.djangoapps.student.models import CourseEnrollment, CourseEnrollmentAllowed
except ImportError:
CourseEnrollment = None
CourseEnrollmentAllowed = None

try:
from openedx.core.djangoapps.content.course_overviews.models import CourseOverview
Expand Down
7 changes: 4 additions & 3 deletions tests/test_enterprise/api/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@
)
from test_utils.decorators import mock_api_response
from test_utils.factories import FAKER, PendingEnterpriseCustomerUserFactory
from test_utils.fake_enrollment_api import get_course_details, get_default_branding_object
from test_utils.fake_enrollment_api import get_course_details
from test_utils.fake_enterprise_api import get_default_branding_object

fake = Faker()

Expand Down Expand Up @@ -3612,12 +3613,12 @@ def test_bulk_enrollment_in_bulk_courses_pending_licenses(
},
{
'email': 'abc@test.com',
'course_run_key': 'course-v2:edX+DemoX+Second_Demo_Course',
'course_run_key': 'course-v1:HarvardX+CoolScience+2016',
'license_uuid': '5a88bdcade7c4ecb838f8111b68e18ac'
},
{
'email': 'xyz@test.com',
'course_run_key': 'course-v2:edX+DemoX+Second_Demo_Course',
'course_run_key': 'course-v1:HarvardX+CoolScience+2016',
'license_uuid': '2c58acdade7c4ede838f7111b42e18ac'
},
]
Expand Down

0 comments on commit 6e74b8b

Please sign in to comment.