From bc40b8f14973ef29fc18c776b8d3477c080680cf Mon Sep 17 00:00:00 2001 From: Calen Pennington Date: Mon, 8 Sep 2014 13:29:14 -0400 Subject: [PATCH] Fix auto-publish test to work with old-mongo --- .../xmodule/xmodule/modulestore/tests/test_mixed_modulestore.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/lib/xmodule/xmodule/modulestore/tests/test_mixed_modulestore.py b/common/lib/xmodule/xmodule/modulestore/tests/test_mixed_modulestore.py index 40b5a1539a..f42b40e654 100644 --- a/common/lib/xmodule/xmodule/modulestore/tests/test_mixed_modulestore.py +++ b/common/lib/xmodule/xmodule/modulestore/tests/test_mixed_modulestore.py @@ -1482,7 +1482,7 @@ class TestMixedModuleStore(unittest.TestCase): test_course_key = test_course.id # test create_item of direct-only category to make sure we are autopublishing - chapter = self.store.create_item(self.user_id, test_course.location, 'chapter', 'Overview') + chapter = self.store.create_child(self.user_id, test_course.location, 'chapter', 'Overview') with self.store.branch_setting(ModuleStoreEnum.Branch.published_only): self.assertIn( chapter.location,