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
25a4fec7
Commit
25a4fec7
authored
May 06, 2015
by
John Eskew
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
boostrapper -> bootstrapper
parent
83962d64
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
common/lib/xmodule/xmodule/modulestore/tests/test_publish.py
+2
-2
common/lib/xmodule/xmodule/modulestore/tests/test_split_migrator.py
+2
-2
common/lib/xmodule/xmodule/modulestore/tests/test_split_w_old_mongo.py
+2
-2
No files found.
common/lib/xmodule/xmodule/modulestore/tests/test_publish.py
View file @
25a4fec7
...
...
@@ -5,12 +5,12 @@ from nose.plugins.attrib import attr
from
xmodule.modulestore
import
ModuleStoreEnum
from
xmodule.modulestore.exceptions
import
ItemNotFoundError
from
xmodule.modulestore.tests.test_split_w_old_mongo
import
SplitWMongoCourseBoostrapper
from
xmodule.modulestore.tests.test_split_w_old_mongo
import
SplitWMongoCourseBoo
t
strapper
from
xmodule.modulestore.tests.factories
import
check_mongo_calls
,
mongo_uses_error_check
@attr
(
'mongo'
)
class
TestPublish
(
SplitWMongoCourseBoostrapper
):
class
TestPublish
(
SplitWMongoCourseBoo
t
strapper
):
"""
Test the publish code (primary causing orphans)
"""
...
...
common/lib/xmodule/xmodule/modulestore/tests/test_split_migrator.py
View file @
25a4fec7
...
...
@@ -10,11 +10,11 @@ from nose.plugins.attrib import attr
from
xblock.fields
import
Reference
,
ReferenceList
,
ReferenceValueDict
,
UNIQUE_ID
from
xmodule.modulestore.split_migrator
import
SplitMigrator
from
xmodule.modulestore.tests.test_split_w_old_mongo
import
SplitWMongoCourseBoostrapper
from
xmodule.modulestore.tests.test_split_w_old_mongo
import
SplitWMongoCourseBoo
t
strapper
@attr
(
'mongo'
)
class
TestMigration
(
SplitWMongoCourseBoostrapper
):
class
TestMigration
(
SplitWMongoCourseBoo
t
strapper
):
"""
Test the split migrator
"""
...
...
common/lib/xmodule/xmodule/modulestore/tests/test_split_w_old_mongo.py
View file @
25a4fec7
...
...
@@ -17,7 +17,7 @@ from xmodule.modulestore.tests.test_cross_modulestore_import_export import Memor
@attr
(
'mongo'
)
class
SplitWMongoCourseBoostrapper
(
unittest
.
TestCase
):
class
SplitWMongoCourseBoo
t
strapper
(
unittest
.
TestCase
):
"""
Helper for tests which need to construct split mongo & old mongo based courses to get interesting internal structure.
Override _create_course and after invoking the super() _create_course, have it call _create_item for
...
...
@@ -51,7 +51,7 @@ class SplitWMongoCourseBoostrapper(unittest.TestCase):
self
.
db_config
[
'collection'
]
=
'modulestore{0}'
.
format
(
uuid
.
uuid4
()
.
hex
[:
5
])
self
.
user_id
=
random
.
getrandbits
(
32
)
super
(
SplitWMongoCourseBoostrapper
,
self
)
.
setUp
()
super
(
SplitWMongoCourseBoo
t
strapper
,
self
)
.
setUp
()
self
.
split_mongo
=
SplitMongoModuleStore
(
None
,
self
.
db_config
,
...
...
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