Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
dcc1d201
Commit
dcc1d201
authored
Jan 27, 2014
by
David Baumgold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Can't use UserFactory in CMS tests :(
parent
de96a47e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
cms/djangoapps/contentstore/management/commands/tests/test_migrate_to_split.py
+5
-2
No files found.
cms/djangoapps/contentstore/management/commands/tests/test_migrate_to_split.py
View file @
dcc1d201
...
...
@@ -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
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment