Performance enhancements for unit tests
in test_contentstore, don't load the xml course if not necessary
This commit is contained in:
@@ -30,7 +30,7 @@ class PollFields(object):
|
||||
|
||||
voted = Boolean(help="Whether this student has voted on the poll", scope=Scope.user_state, default=False)
|
||||
poll_answer = String(help="Student answer", scope=Scope.user_state, default='')
|
||||
poll_answers = Dict(help="All possible answers for the poll fro other students", scope=Scope.user_state_summary)
|
||||
poll_answers = Dict(help="Poll answers from all students", scope=Scope.user_state_summary)
|
||||
|
||||
# List of answers, in the form {'id': 'some id', 'text': 'the answer text'}
|
||||
answers = List(help="Poll answers from xml", scope=Scope.content, default=[])
|
||||
|
||||
Reference in New Issue
Block a user