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
ee61b153
Commit
ee61b153
authored
Jul 02, 2013
by
David Baumgold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added a few more tests, to increase diff coverage
parent
c5c1fd08
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
0 deletions
+32
-0
cms/djangoapps/contentstore/tests/test_course_settings.py
+32
-0
No files found.
cms/djangoapps/contentstore/tests/test_course_settings.py
View file @
ee61b153
...
...
@@ -354,3 +354,35 @@ class CourseMetadataEditingTest(CourseTestCase):
# check for deletion effectiveness
self
.
assertEqual
(
'closed'
,
test_model
[
'showanswer'
],
'showanswer field still in'
)
self
.
assertEqual
(
None
,
test_model
[
'xqa_key'
],
'xqa_key field still in'
)
class
CourseGraderUpdatesTest
(
CourseTestCase
):
def
setUp
(
self
):
super
(
CourseGraderUpdatesTest
,
self
)
.
setUp
()
self
.
url
=
reverse
(
"course_settings"
,
kwargs
=
{
'org'
:
self
.
course
.
location
.
org
,
'course'
:
self
.
course
.
location
.
course
,
'name'
:
self
.
course
.
location
.
name
,
'grader_index'
:
0
,
})
def
test_get
(
self
):
resp
=
self
.
client
.
get
(
self
.
url
)
self
.
assert2XX
(
resp
.
status_code
)
obj
=
json
.
loads
(
resp
.
content
)
def
test_delete
(
self
):
resp
=
self
.
client
.
delete
(
self
.
url
)
self
.
assert2XX
(
resp
.
status_code
)
def
test_post
(
self
):
grader
=
{
"type"
:
"manual"
,
"min_count"
:
5
,
"drop_count"
:
10
,
"short_label"
:
"yo momma"
,
"weight"
:
17.3
,
}
resp
=
self
.
client
.
post
(
self
.
url
,
grader
)
self
.
assert2XX
(
resp
.
status_code
)
obj
=
json
.
loads
(
resp
.
content
)
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