From 70fff66e42672526ae90a64050d73a9b2c233255 Mon Sep 17 00:00:00 2001 From: Dillon Dumesnil Date: Tue, 31 Oct 2017 21:57:57 -0400 Subject: [PATCH] Responding to comments --- openedx/tests/xblock_integration/test_review_xblock.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/openedx/tests/xblock_integration/test_review_xblock.py b/openedx/tests/xblock_integration/test_review_xblock.py index be3f2c6c1a..45512ea9c1 100644 --- a/openedx/tests/xblock_integration/test_review_xblock.py +++ b/openedx/tests/xblock_integration/test_review_xblock.py @@ -116,16 +116,12 @@ class TestReviewXBlock(SharedModuleStoreTestCase, LoginEnrollmentTestCase): cls.course_actual_url = reverse( 'courseware_section', kwargs={ - 'course_id': cls.course_actual.id.to_deprecated_string(), + 'course_id': unicode(cls.course_actual.id), 'chapter': 'Overview', 'section': 'Welcome', } ) - # refresh the course from the modulestore so that it has children - # Not sure if this is actually needed or not - cls.course_actual = modulestore().get_course(cls.course_actual.id) - # Set up for the review course where the review problems are hosted cls.course_review = CourseFactory.create( display_name='Review_Test_Course_REVIEW', @@ -183,7 +179,7 @@ class TestReviewXBlock(SharedModuleStoreTestCase, LoginEnrollmentTestCase): cls.course_review_url = reverse( 'courseware_section', kwargs={ - 'course_id': cls.course_review.id.to_deprecated_string(), + 'course_id': unicode(cls.course_review.id), 'chapter': 'Overview', 'section': 'Welcome', }