Import existing UserFactory
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user