chore: tweak tests to work with XBlock==3.0.0
This commit is contained in:
committed by
Kyle McCormick
parent
3c5e1f5769
commit
3447cbcb90
@@ -46,7 +46,7 @@ def test_get_xblock_root_module_name():
|
||||
|
||||
mixed_done_xblock = runtime.construct_xblock_from_class(DoneXBlock, Mock())
|
||||
|
||||
assert mixed_done_xblock.__module__ == 'xblock.internal' # Mixed classes has a runtime generated module name.
|
||||
assert mixed_done_xblock.__module__ == 'xblock.core'
|
||||
assert mixed_done_xblock.unmixed_class == DoneXBlock, 'The unmixed_class property retains the original property.'
|
||||
|
||||
assert get_xblock_root_module_name(mixed_done_xblock) == 'done'
|
||||
|
||||
@@ -15,7 +15,7 @@ from xblock.test.tools import TestRuntime
|
||||
from xmodule.modulestore.inheritance import InheritanceMixin
|
||||
|
||||
|
||||
class TestXBlock:
|
||||
class TestXBlock(XBlock):
|
||||
"""
|
||||
An empty Xblock, to be used, when creating a block with mixins.
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user