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
cc73bc0b
Commit
cc73bc0b
authored
Sep 28, 2015
by
Brian Beggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added test to discussions_api client to test JSON response that is absent of the resp_total key
parent
d9de5275
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
lms/djangoapps/discussion_api/tests/test_serializers.py
+6
-0
No files found.
lms/djangoapps/discussion_api/tests/test_serializers.py
View file @
cc73bc0b
...
...
@@ -257,6 +257,12 @@ class ThreadSerializerSerializationTest(SerializerTestMixin, SharedModuleStoreTe
serialized
=
self
.
serialize
(
Thread
(
id
=
thread_data
[
"id"
]))
self
.
assertEqual
(
serialized
[
"response_count"
],
2
)
def
test_response_count_missing
(
self
):
thread_data
=
self
.
make_cs_content
({})
del
thread_data
[
"resp_total"
]
self
.
register_get_thread_response
(
thread_data
)
serialized
=
self
.
serialize
(
Thread
(
id
=
thread_data
[
"id"
]))
self
.
assertIsNone
(
serialized
[
"response_count"
],
None
)
@ddt.ddt
class
CommentSerializerTest
(
SerializerTestMixin
,
SharedModuleStoreTestCase
):
...
...
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