diff --git a/cms/djangoapps/contentstore/management/commands/tests/test_fix_not_found.py b/cms/djangoapps/contentstore/management/commands/tests/test_fix_not_found.py index bd519a4167..ceff802d46 100644 --- a/cms/djangoapps/contentstore/management/commands/tests/test_fix_not_found.py +++ b/cms/djangoapps/contentstore/management/commands/tests/test_fix_not_found.py @@ -16,7 +16,7 @@ class TestFixNotFound(ModuleStoreTestCase): """ The management command doesn't work on non split courses """ - course = CourseFactory(default_store=ModuleStoreEnum.Type.mongo) + course = CourseFactory.create(default_store=ModuleStoreEnum.Type.mongo) with self.assertRaises(SystemExit): call_command("fix_not_found", unicode(course.id))