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
7138aed2
Commit
7138aed2
authored
Aug 22, 2013
by
Chris Dodge
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add xlint tests in test_mongo.py
parent
079470d4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
common/lib/xmodule/xmodule/modulestore/tests/test_mongo.py
+10
-2
No files found.
common/lib/xmodule/xmodule/modulestore/tests/test_mongo.py
View file @
7138aed2
...
...
@@ -11,7 +11,7 @@ from xmodule.tests import DATA_DIR
from
xmodule.modulestore
import
Location
from
xmodule.modulestore.mongo
import
MongoModuleStore
,
MongoKeyValueStore
from
xmodule.modulestore.draft
import
DraftModuleStore
from
xmodule.modulestore.xml_importer
import
import_from_xml
from
xmodule.modulestore.xml_importer
import
import_from_xml
,
perform_xlint
from
xmodule.contentstore.mongo
import
MongoContentStore
from
xmodule.modulestore.tests.test_modulestore
import
check_path_to_location
...
...
@@ -65,7 +65,8 @@ class TestMongoModuleStore(object):
DATA_DIR
,
[
'test_import_course'
],
static_content_store
=
content_store
,
do_import_static
=
False
do_import_static
=
False
,
verbose
=
True
)
return
store
,
content_store
,
draft_store
...
...
@@ -133,6 +134,13 @@ class TestMongoModuleStore(object):
'''Make sure that path_to_location works'''
check_path_to_location
(
self
.
store
)
def
test_xlinter
(
self
):
'''
Run through the xlinter, we know the 'toy' course has violations, but the
number will continue to grow over time, so just check > 0
'''
assert_not_equals
(
perform_xlint
(
DATA_DIR
,
[
'toy'
]),
0
)
def
test_get_courses_has_no_templates
(
self
):
courses
=
self
.
store
.
get_courses
()
for
course
in
courses
:
...
...
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