Commit 7d9a2e74 by Will Daly

Update management command test to fix test failure

parent 4dda3513
...@@ -56,13 +56,17 @@ class CreateScenarioTest(TestCase): ...@@ -56,13 +56,17 @@ class CreateScenarioTest(TestCase):
has_self_assessment=True has_self_assessment=True
) )
# Retrieve the self assessment # Retrieve the submission
submission, assessment = self_api.get_submission_and_assessment({ submissions = sub_api.get_submissions({
'student_id': 'test_user', 'student_id': 'test_user',
'course_id': 'test_course', 'course_id': 'test_course',
'item_id': 'test_problem', 'item_id': 'test_problem',
'item_type': 'openassessment', 'item_type': 'openassessment',
}) }, limit=1)
self.assertEqual(len(submissions), 1)
# Retrieve the self assessment
submission, assessment = self_api.get_submission_and_assessment(submissions[0]['uuid'])
# Verify that the assessment exists and has content # Verify that the assessment exists and has content
self.assertIsNot(submission, None) self.assertIsNot(submission, None)
......
...@@ -6,6 +6,7 @@ Test-specific Django settings. ...@@ -6,6 +6,7 @@ Test-specific Django settings.
from .base import * from .base import *
TEST_APPS = ( TEST_APPS = (
'openassessment',
'openassessment.assessment', 'openassessment.assessment',
'openassessment.workflow', 'openassessment.workflow',
'openassessment.xblock', 'openassessment.xblock',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment