summaryrefslogtreecommitdiff
path: root/yaksh/test_models.py
diff options
context:
space:
mode:
authorPrabhu Ramachandran2016-09-01 17:59:39 +0530
committerGitHub2016-09-01 17:59:39 +0530
commit01e08dd15b59ce353043d541c9be81592cda3fe0 (patch)
treeba1a9f7ffee92b79262b83fa9eb6eed303550f98 /yaksh/test_models.py
parent27e7a443ef132e04cc5aeece7a5bf34d0687f482 (diff)
parenta4b636508d572cbe00ae8d0336c7b30494bad4a6 (diff)
downloadonline_test-01e08dd15b59ce353043d541c9be81592cda3fe0.tar.gz
online_test-01e08dd15b59ce353043d541c9be81592cda3fe0.tar.bz2
online_test-01e08dd15b59ce353043d541c9be81592cda3fe0.zip
Merge pull request #105 from adityacp/stdin_stdout_evaluator
Stdin stdout evaluators
Diffstat (limited to 'yaksh/test_models.py')
-rw-r--r--yaksh/test_models.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/yaksh/test_models.py b/yaksh/test_models.py
index 2136987..ca64f8c 100644
--- a/yaksh/test_models.py
+++ b/yaksh/test_models.py
@@ -1,7 +1,7 @@
import unittest
from yaksh.models import User, Profile, Question, Quiz, QuestionPaper,\
QuestionSet, AnswerPaper, Answer, Course, StandardTestCase,\
- StdoutBasedTestCase
+ StdioBasedTestCase
import json
from datetime import datetime, timedelta
from django.utils import timezone
@@ -709,7 +709,7 @@ class TestCaseTestCases(unittest.TestCase):
active=True,
description='Write to standard output',
points=1.0,
- test_case_type="stdoutbasedtestcase",
+ test_case_type="stdiobasedtestcase",
user=self.user,
snippet='def myfunc()'
)
@@ -719,7 +719,7 @@ class TestCaseTestCases(unittest.TestCase):
question=self.question1,
test_case='assert myfunc(12, 13) == 15'
)
- self.stdout_based_testcase = StdoutBasedTestCase(
+ self.stdout_based_testcase = StdioBasedTestCase(
question=self.question2,
expected_output='Hello World'
)