Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
7138aed2
Commit
7138aed2
authored
11 years ago
by
Chris Dodge
Browse files
Options
Downloads
Patches
Plain Diff
add xlint tests in test_mongo.py
parent
079470d4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
common/lib/xmodule/xmodule/modulestore/tests/test_mongo.py
+10
-2
10 additions, 2 deletions
common/lib/xmodule/xmodule/modulestore/tests/test_mongo.py
with
10 additions
and
2 deletions
common/lib/xmodule/xmodule/modulestore/tests/test_mongo.py
+
10
−
2
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
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment