summaryrefslogtreecommitdiff
path: root/yaksh/test_models.py
diff options
context:
space:
mode:
authormaheshgudi2018-07-13 19:47:46 +0530
committermaheshgudi2018-07-13 19:59:24 +0530
commit49544f71db2a9fc2f914cd56cb746514970ed98b (patch)
tree4e73b5f3a0efe95ba77a66b3520429514a1bd024 /yaksh/test_models.py
parentaaadd40f7ee0c3ab6e7da4e023257eb091f206bc (diff)
downloadonline_test-49544f71db2a9fc2f914cd56cb746514970ed98b.tar.gz
online_test-49544f71db2a9fc2f914cd56cb746514970ed98b.tar.bz2
online_test-49544f71db2a9fc2f914cd56cb746514970ed98b.zip
Update migrations to fix order error
Diffstat (limited to 'yaksh/test_models.py')
-rw-r--r--yaksh/test_models.py15
1 files changed, 0 insertions, 15 deletions
diff --git a/yaksh/test_models.py b/yaksh/test_models.py
index 14d5197..e0235fe 100644
--- a/yaksh/test_models.py
+++ b/yaksh/test_models.py
@@ -1285,21 +1285,6 @@ class AnswerPaperTestCases(unittest.TestCase):
self.assertEqual(self.answer.marks, 0)
self.assertFalse(self.answer.correct)
- def test_testcase_order(self):
- testcase_ids = ",".join([str(ids) for ids in
- self.question2.get_test_cases()
- ])
- testcase_order = TestCaseOrder.objects.create(
- answer_paper=self.answerpaper,
- question=self.question2,
- order=testcase_ids)
- with self.assertRaises(IntegrityError):
- TestCaseOrder.objects.create(answer_paper=self.answerpaper,
- question=self.question2,
- order=testcase_ids
- )
- testcase_order.delete()
-
def test_validate_and_regrade_mcq_correct_answer(self):
# Given
mcq_answer = str(self.mcq_based_testcase.id)