Commit cee24c5c by Jay Zoldak

Import existing UserFactory

parent 2fd9ccec
......@@ -25,6 +25,8 @@ from xmodule.seq_module import SequenceModule
from courseware.tests.tests import PageLoader
from student.models import Registration
from factories import UserFactory
class Stub:
def __init__(self):
pass
......@@ -40,12 +42,6 @@ def xml_store_config(data_dir):
}
}
class UserFactory(factory.Factory):
first_name = 'Test'
last_name = 'Robot'
is_staff = True
is_active = True
TEST_DATA_DIR = settings.COMMON_TEST_DATA_ROOT
TEST_DATA_XML_MODULESTORE = xml_store_config(TEST_DATA_DIR)
......
......@@ -19,14 +19,11 @@ from xmodule.modulestore.exceptions import InvalidLocationError,\
import courseware.views as views
from xmodule.modulestore import Location
from factories import UserFactory
class Stub():
pass
class UserFactory(factory.Factory):
first_name = 'Test'
last_name = 'Robot'
is_staff = True
is_active = True
# This part is required for modulestore() to work properly
def xml_store_config(data_dir):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment