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
3f9a72e6
Commit
3f9a72e6
authored
Jun 21, 2013
by
JonahStanley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Consolidated imports
parent
5e6de488
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
cms/djangoapps/contentstore/tests/test_contentstore.py
+3
-4
No files found.
cms/djangoapps/contentstore/tests/test_contentstore.py
View file @
3f9a72e6
...
@@ -23,7 +23,7 @@ from xmodule.modulestore import Location
...
@@ -23,7 +23,7 @@ from xmodule.modulestore import Location
from
xmodule.modulestore.store_utilities
import
clone_course
from
xmodule.modulestore.store_utilities
import
clone_course
from
xmodule.modulestore.store_utilities
import
delete_course
from
xmodule.modulestore.store_utilities
import
delete_course
from
xmodule.modulestore.django
import
modulestore
from
xmodule.modulestore.django
import
modulestore
from
xmodule.contentstore.django
import
contentstore
from
xmodule.contentstore.django
import
contentstore
,
_CONTENTSTORE
from
xmodule.templates
import
update_templates
from
xmodule.templates
import
update_templates
from
xmodule.modulestore.xml_exporter
import
export_to_xml
from
xmodule.modulestore.xml_exporter
import
export_to_xml
from
xmodule.modulestore.xml_importer
import
import_from_xml
,
perform_xlint
from
xmodule.modulestore.xml_importer
import
import_from_xml
,
perform_xlint
...
@@ -41,7 +41,6 @@ from xmodule.exceptions import NotFoundError
...
@@ -41,7 +41,6 @@ from xmodule.exceptions import NotFoundError
from
django_comment_common.utils
import
are_permissions_roles_seeded
from
django_comment_common.utils
import
are_permissions_roles_seeded
from
xmodule.exceptions
import
InvalidVersionError
from
xmodule.exceptions
import
InvalidVersionError
import
xmodule.contentstore.django
import
datetime
import
datetime
from
pytz
import
UTC
from
pytz
import
UTC
from
uuid
import
uuid4
from
uuid
import
uuid4
...
@@ -92,7 +91,7 @@ class ContentStoreToyCourseTest(ModuleStoreTestCase):
...
@@ -92,7 +91,7 @@ class ContentStoreToyCourseTest(ModuleStoreTestCase):
def
tearDown
(
self
):
def
tearDown
(
self
):
mongo
=
MongoClient
()
mongo
=
MongoClient
()
mongo
.
drop_database
(
TEST_DATA_CONTENTSTORE
[
'OPTIONS'
][
'db'
])
mongo
.
drop_database
(
TEST_DATA_CONTENTSTORE
[
'OPTIONS'
][
'db'
])
xmodule
.
contentstore
.
django
.
_CONTENTSTORE
.
clear
()
_CONTENTSTORE
.
clear
()
def
check_components_on_page
(
self
,
component_types
,
expected_types
):
def
check_components_on_page
(
self
,
component_types
,
expected_types
):
"""
"""
...
@@ -857,7 +856,7 @@ class ContentStoreTest(ModuleStoreTestCase):
...
@@ -857,7 +856,7 @@ class ContentStoreTest(ModuleStoreTestCase):
def
tearDown
(
self
):
def
tearDown
(
self
):
mongo
=
MongoClient
()
mongo
=
MongoClient
()
mongo
.
drop_database
(
TEST_DATA_CONTENTSTORE
[
'OPTIONS'
][
'db'
])
mongo
.
drop_database
(
TEST_DATA_CONTENTSTORE
[
'OPTIONS'
][
'db'
])
xmodule
.
contentstore
.
django
.
_CONTENTSTORE
.
clear
()
_CONTENTSTORE
.
clear
()
def
test_create_course
(
self
):
def
test_create_course
(
self
):
"""Test new course creation - happy path"""
"""Test new course creation - happy path"""
...
...
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