Commit 41db8d8e by aamir-khan

ECOM-1592: code refactoring

parent 810733db
......@@ -136,13 +136,13 @@ def _is_credit_requirement(xblock):
if not callable(getattr(xblock, "get_credit_requirement_namespace", None)):
is_credit_requirement = False
LOGGER.error(
"XBlock %v is marked as a credit requirement but does not "
"implement get_credit_requirement_namespace()", xblock
"XBlock %s is marked as a credit requirement but does not "
"implement get_credit_requirement_namespace()", unicode(xblock)
)
if not callable(getattr(xblock, "get_credit_requirement_name", None)):
is_credit_requirement = False
LOGGER.error(
"XBlock %v is marked as a credit requirement but does not "
"implement get_credit_requirement_name()", xblock
"XBlock %s is marked as a credit requirement but does not "
"implement get_credit_requirement_name()", unicode(xblock)
)
return is_credit_requirement
......@@ -32,7 +32,7 @@ class TestTaskExecution(ModuleStoreTestCase):
section = ItemFactory.create(parent=self.course, category='chapter', display_name='Test Section')
subsection = ItemFactory.create(parent=section, category='sequential', display_name='Test Subsection')
vertical = ItemFactory.create(parent=subsection, category='vertical', display_name='Test Unit')
reverification = ItemFactory.create(
ItemFactory.create(
parent=vertical,
category='edx-reverification-block',
display_name='Test Verification Block'
......
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