From 3adc2f0a2e2a985d6e1427b1be53a80747a5360a Mon Sep 17 00:00:00 2001 From: Sarina Canelake Date: Wed, 11 Jun 2014 21:32:41 -0400 Subject: [PATCH] Fix opaque_keys imports from hotfixes --- common/djangoapps/course_modes/tests/factories.py | 2 +- common/djangoapps/course_modes/tests/test_views.py | 2 +- common/djangoapps/student/tests/factories.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/common/djangoapps/course_modes/tests/factories.py b/common/djangoapps/course_modes/tests/factories.py index 0cfb439700..5ca0153db1 100644 --- a/common/djangoapps/course_modes/tests/factories.py +++ b/common/djangoapps/course_modes/tests/factories.py @@ -1,6 +1,6 @@ from course_modes.models import CourseMode from factory.django import DjangoModelFactory -from xmodule.modulestore.locations import SlashSeparatedCourseKey +from opaque_keys.edx.locations import SlashSeparatedCourseKey # Factories don't have __init__ methods, and are self documenting diff --git a/common/djangoapps/course_modes/tests/test_views.py b/common/djangoapps/course_modes/tests/test_views.py index 9de6f3c09f..4df40ab2af 100644 --- a/common/djangoapps/course_modes/tests/test_views.py +++ b/common/djangoapps/course_modes/tests/test_views.py @@ -7,7 +7,7 @@ from mock import patch, Mock from course_modes.tests.factories import CourseModeFactory from student.tests.factories import CourseEnrollmentFactory, UserFactory -from xmodule.modulestore.locations import SlashSeparatedCourseKey +from opaque_keys.edx.locations import SlashSeparatedCourseKey @ddt.ddt diff --git a/common/djangoapps/student/tests/factories.py b/common/djangoapps/student/tests/factories.py index 6ad1962c4e..e419b56ea3 100644 --- a/common/djangoapps/student/tests/factories.py +++ b/common/djangoapps/student/tests/factories.py @@ -10,7 +10,7 @@ import factory from factory.django import DjangoModelFactory from uuid import uuid4 from pytz import UTC -from xmodule.modulestore.locations import SlashSeparatedCourseKey +from opaque_keys.edx.locations import SlashSeparatedCourseKey # Factories don't have __init__ methods, and are self documenting # pylint: disable=W0232, C0111