Skip to content

Commit cad7c2d

Browse files
committed
test: Reduce query count in tagging test
I believe this is because the M2M field ContentLibrary.authorized_lti_configs has been removed. That field was being queried in order to compute the `allow_lti` property when building a ContentLibraryMetadata object.
1 parent 209f5f5 commit cad7c2d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

openedx/core/djangoapps/content_tagging/tests/test_objecttag_export_helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ def test_build_library_object_tree(self) -> None:
442442
"""
443443
Test if we can export a library
444444
"""
445-
with self.assertNumQueries(11):
445+
with self.assertNumQueries(10):
446446
tagged_library = build_object_tree_with_objecttags(self.library.key, self.all_library_object_tags)
447447

448448
assert tagged_library == self.expected_library_tagged_xblock

0 commit comments

Comments
 (0)