Commit 7b3d91f5 by Calen Pennington

Use CourseKey.from_string rather than from_deprecated_string

parent 199a8b78
...@@ -14,7 +14,7 @@ from django.test.client import RequestFactory ...@@ -14,7 +14,7 @@ from django.test.client import RequestFactory
from django.test.utils import override_settings from django.test.utils import override_settings
from django.contrib.auth.models import AnonymousUser from django.contrib.auth.models import AnonymousUser
from mock import MagicMock, patch, Mock from mock import MagicMock, patch, Mock
from opaque_keys.edx.keys import UsageKey from opaque_keys.edx.keys import UsageKey, CourseKey
from opaque_keys.edx.locations import SlashSeparatedCourseKey from opaque_keys.edx.locations import SlashSeparatedCourseKey
from xblock.field_data import FieldData from xblock.field_data import FieldData
from xblock.runtime import Runtime from xblock.runtime import Runtime
...@@ -922,7 +922,7 @@ class TestAnonymousStudentId(ModuleStoreTestCase, LoginEnrollmentTestCase): ...@@ -922,7 +922,7 @@ class TestAnonymousStudentId(ModuleStoreTestCase, LoginEnrollmentTestCase):
# This value is set by observation, so that later changes to the student # This value is set by observation, so that later changes to the student
# id computation don't break old data # id computation don't break old data
'5afe5d9bb03796557ee2614f5c9611fb', '5afe5d9bb03796557ee2614f5c9611fb',
self._get_anonymous_id(SlashSeparatedCourseKey.from_deprecated_string(course_id), descriptor_class) self._get_anonymous_id(CourseKey.from_string(course_id), descriptor_class)
) )
@ddt.data(*PER_COURSE_ANONYMIZED_DESCRIPTORS) @ddt.data(*PER_COURSE_ANONYMIZED_DESCRIPTORS)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment