Skip to content

Commit

Permalink
chore: make tests work with XBlock refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
kdmccormick committed Mar 18, 2024
1 parent 415098e commit 8a9293d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion xmodule/modulestore/tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion xmodule/modulestore/tests/test_inheritance.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from xmodule.modulestore.inheritance import InheritanceMixin


class TestXBlock:
class TestXBlock(XBlock):
"""
An empty Xblock, to be used, when creating a block with mixins.
"""
Expand Down

0 comments on commit 8a9293d

Please sign in to comment.