Merge pull request #17180 from edx/jmbowman/PLAT-1885

PLAT-1885 Stop using deprecated BlockUsageLocator properties
This commit is contained in:
Jeremy Bowman
2018-01-12 18:02:29 -05:00
committed by GitHub
51 changed files with 185 additions and 176 deletions

View File

@@ -275,12 +275,12 @@ class TestModuleStoreSerializer(TestDumpToNeo4jCommandBase):
).for_version('test_version')
self.assertIsNotNone(location.branch)
self.assertIsNotNone(location.version)
self.assertIsNotNone(location.version_guid)
stripped_location = strip_branch_and_version(location)
self.assertIsNone(stripped_location.branch)
self.assertIsNone(stripped_location.version)
self.assertIsNone(stripped_location.version_guid)
@staticmethod
def _extract_relationship_pairs(relationships, relationship_type):

View File

@@ -29,7 +29,7 @@ class CourseDetailsTestCase(ModuleStoreTestCase):
details = CourseDetails.fetch(self.course.id)
self.assertEqual(details.org, self.course.location.org, "Org not copied into")
self.assertEqual(details.course_id, self.course.location.course, "Course_id not copied into")
self.assertEqual(details.run, self.course.location.name, "Course name not copied into")
self.assertEqual(details.run, self.course.location.block_id, "Course name not copied into")
self.assertEqual(details.course_image_name, self.course.course_image)
self.assertIsNotNone(details.start_date.tzinfo)
self.assertIsNone(details.end_date, "end date somehow initialized " + str(details.end_date))