From 3447cbcb9012c228d90e49bc5b48e1b3999814ad Mon Sep 17 00:00:00 2001 From: "Kyle D. McCormick" Date: Tue, 19 Mar 2024 15:28:55 -0400 Subject: [PATCH] chore: tweak tests to work with XBlock==3.0.0 --- xmodule/modulestore/tests/test_api.py | 2 +- xmodule/modulestore/tests/test_inheritance.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/xmodule/modulestore/tests/test_api.py b/xmodule/modulestore/tests/test_api.py index e42d3ded46..4e665c9eec 100644 --- a/xmodule/modulestore/tests/test_api.py +++ b/xmodule/modulestore/tests/test_api.py @@ -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' diff --git a/xmodule/modulestore/tests/test_inheritance.py b/xmodule/modulestore/tests/test_inheritance.py index eb98cbc4f9..253a9f7abf 100644 --- a/xmodule/modulestore/tests/test_inheritance.py +++ b/xmodule/modulestore/tests/test_inheritance.py @@ -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. """