Commit 0e70dad8 by Calen Pennington

Make the block_type used in the tests configurable

parent 18d31d57
......@@ -49,10 +49,15 @@ class _UserStateClientTestUtils(TestCase):
course = block // 1000
return BlockUsageLocator(
self._course(course),
'block_type',
self._block_type(block),
'block{}'.format(block)
)
@contract(block=int)
def _block_type(self, block): # pylint: disable=unused-argument
"""Return the block type for the specified ``block_idx``."""
return 'block_type'
@contract(course=int)
def _course(self, course):
"""Return a CourseKey for the course ``course_idx``"""
......
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