Performance enhancements for unit tests

in test_contentstore, don't load the xml course if not necessary
This commit is contained in:
Don Mitchell
2014-10-09 11:47:56 -04:00
parent 56d51c4f75
commit 3c42e8c725
4 changed files with 482 additions and 485 deletions

View File

@@ -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=[])