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
5e6de488
Commit
5e6de488
authored
Jun 21, 2013
by
JonahStanley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed pylint/pep8 violations
parent
58fe6d4e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
cms/djangoapps/contentstore/tests/test_contentstore.py
+5
-7
No files found.
cms/djangoapps/contentstore/tests/test_contentstore.py
View file @
5e6de488
...
...
@@ -90,8 +90,8 @@ class ContentStoreToyCourseTest(ModuleStoreTestCase):
self
.
client
.
login
(
username
=
uname
,
password
=
password
)
def
tearDown
(
self
):
m
=
MongoClient
()
m
.
drop_database
(
TEST_DATA_CONTENTSTORE
[
'OPTIONS'
][
'db'
])
m
ongo
=
MongoClient
()
m
ongo
.
drop_database
(
TEST_DATA_CONTENTSTORE
[
'OPTIONS'
][
'db'
])
xmodule
.
contentstore
.
django
.
_CONTENTSTORE
.
clear
()
def
check_components_on_page
(
self
,
component_types
,
expected_types
):
...
...
@@ -414,7 +414,7 @@ class ContentStoreToyCourseTest(ModuleStoreTestCase):
self
.
assertGreater
(
len
(
all_assets
),
0
)
# make sure we have some thumbnails in our contentstore
all_thumbnails
=
content_store
.
get_all_content_thumbnails_for_course
(
course_location
)
content_store
.
get_all_content_thumbnails_for_course
(
course_location
)
#
# cdodge: temporarily comment out assertion on thumbnails because many environments
...
...
@@ -543,7 +543,6 @@ class ContentStoreToyCourseTest(ModuleStoreTestCase):
all_assets
=
trash_store
.
get_all_content_for_course
(
course_location
)
self
.
assertEqual
(
len
(
all_assets
),
0
)
all_thumbnails
=
trash_store
.
get_all_content_thumbnails_for_course
(
course_location
)
self
.
assertEqual
(
len
(
all_thumbnails
),
0
)
...
...
@@ -608,7 +607,6 @@ class ContentStoreToyCourseTest(ModuleStoreTestCase):
self
.
assertRaises
(
InvalidVersionError
,
draft_store
.
unpublish
,
location
)
def
test_bad_contentstore_request
(
self
):
resp
=
self
.
client
.
get
(
'http://localhost:8001/c4x/CDX/123123/asset/&images_circuits_Lab7Solution2.png'
)
self
.
assertEqual
(
resp
.
status_code
,
400
)
...
...
@@ -857,8 +855,8 @@ class ContentStoreTest(ModuleStoreTestCase):
}
def
tearDown
(
self
):
m
=
MongoClient
()
m
.
drop_database
(
TEST_DATA_CONTENTSTORE
[
'OPTIONS'
][
'db'
])
m
ongo
=
MongoClient
()
m
ongo
.
drop_database
(
TEST_DATA_CONTENTSTORE
[
'OPTIONS'
][
'db'
])
xmodule
.
contentstore
.
django
.
_CONTENTSTORE
.
clear
()
def
test_create_course
(
self
):
...
...
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