From dcc1d201cedee043375e7858018950c6df7e8d95 Mon Sep 17 00:00:00 2001 From: David Baumgold Date: Mon, 27 Jan 2014 09:53:29 -0500 Subject: [PATCH] Can't use UserFactory in CMS tests :( --- .../management/commands/tests/test_migrate_to_split.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/cms/djangoapps/contentstore/management/commands/tests/test_migrate_to_split.py b/cms/djangoapps/contentstore/management/commands/tests/test_migrate_to_split.py index 55879e4f43..7839d8c2e9 100644 --- a/cms/djangoapps/contentstore/management/commands/tests/test_migrate_to_split.py +++ b/cms/djangoapps/contentstore/management/commands/tests/test_migrate_to_split.py @@ -3,13 +3,13 @@ Unittests for importing a course via management command """ import unittest +from django.contrib.auth.models import User from django.core.management import CommandError, call_command from django.test.utils import override_settings from contentstore.management.commands.migrate_to_split import Command from contentstore.tests.modulestore_config import TEST_MODULESTORE from xmodule.modulestore.tests.django_utils import ModuleStoreTestCase from xmodule.modulestore.tests.factories import CourseFactory -from student.tests.factories import UserFactory from xmodule.modulestore.django import modulestore from xmodule.modulestore.django import loc_mapper @@ -47,8 +47,11 @@ class TestMigrateToSplit(ModuleStoreTestCase): def setUp(self): super(TestMigrateToSplit, self).setUp() + uname = 'testuser' + email = 'test+courses@edx.org' + password = 'foo' + self.user = User.objects.create_user(uname, email, password) self.course = CourseFactory() - self.user = UserFactory() def test_happy_path(self): call_command(