chore: tweak tests to work with XBlock==3.0.0

This commit is contained in:
Kyle D. McCormick
2024-03-19 15:28:55 -04:00
committed by Kyle McCormick
parent 3c5e1f5769
commit 3447cbcb90
2 changed files with 2 additions and 2 deletions

View File

@@ -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'

View File

@@ -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.
"""