From 63ac5702d97983f0bd709b586483a4f082d0efdb Mon Sep 17 00:00:00 2001 From: farhan Date: Thu, 16 Jan 2025 13:39:37 +0500 Subject: [PATCH] fix: fix --- xmodule/modulestore/tests/test_mongo_call_count.py | 6 +++--- xmodule/tests/test_word_cloud.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/xmodule/modulestore/tests/test_mongo_call_count.py b/xmodule/modulestore/tests/test_mongo_call_count.py index b98113420868..341c3b35e580 100644 --- a/xmodule/modulestore/tests/test_mongo_call_count.py +++ b/xmodule/modulestore/tests/test_mongo_call_count.py @@ -139,9 +139,9 @@ def _import_course(self, content_store, modulestore): # These two lines show the way this traversal *should* be done # (if you'll eventually access all the fields and load all the definitions anyway). (MIXED_SPLIT_MODULESTORE_BUILDER, None, False, True, 2), - (MIXED_SPLIT_MODULESTORE_BUILDER, None, True, True, 36), - (MIXED_SPLIT_MODULESTORE_BUILDER, 0, False, True, 36), - (MIXED_SPLIT_MODULESTORE_BUILDER, 0, True, True, 36), + (MIXED_SPLIT_MODULESTORE_BUILDER, None, True, True, 37), + (MIXED_SPLIT_MODULESTORE_BUILDER, 0, False, True, 37), + (MIXED_SPLIT_MODULESTORE_BUILDER, 0, True, True, 37), (MIXED_SPLIT_MODULESTORE_BUILDER, None, False, False, 2), (MIXED_SPLIT_MODULESTORE_BUILDER, None, True, False, 2), (MIXED_SPLIT_MODULESTORE_BUILDER, 0, False, False, 2), diff --git a/xmodule/tests/test_word_cloud.py b/xmodule/tests/test_word_cloud.py index 3b965284a97d..faebaf39f2b3 100644 --- a/xmodule/tests/test_word_cloud.py +++ b/xmodule/tests/test_word_cloud.py @@ -66,7 +66,7 @@ def test_xml_import_export_cycle(self): exported_xml = f.read() exported_xml_tree = etree.fromstring(exported_xml.encode('utf-8')) - etree.cleanup_namespaces(etree.fromstring(exported_xml.encode('utf-8'))) + etree.cleanup_namespaces(exported_xml_tree) exported_xml = etree.tostring(exported_xml_tree, encoding='unicode', pretty_print=True) assert original_xml == exported_xml