-
-
+
@@ -261,44 +245,7 @@ function call_skip(url)
+{% endblock main %}
-
-{% endblock content %}
--
cgit
From 5ee9b4647c7f1ba9803a95ad3871f6acfc92c1c0 Mon Sep 17 00:00:00 2001
From: prathamesh
Date: Fri, 13 Jan 2017 16:48:16 +0530
Subject: removed unwanted css. Modified test.
---
yaksh/evaluator_tests/test_python_evaluation.py | 10 +++++-----
yaksh/static/yaksh/css/dashboard.css | 19 -------------------
2 files changed, 5 insertions(+), 24 deletions(-)
(limited to 'yaksh')
diff --git a/yaksh/evaluator_tests/test_python_evaluation.py b/yaksh/evaluator_tests/test_python_evaluation.py
index c58d7f1..43dfe6b 100644
--- a/yaksh/evaluator_tests/test_python_evaluation.py
+++ b/yaksh/evaluator_tests/test_python_evaluation.py
@@ -76,13 +76,13 @@ class PythonAssertionEvaluationTestCases(EvaluatorBaseTest):
# Then
self.assertFalse(result.get('success'))
- self.assert_correct_output('AssertionError in: assert(add(1,2)==3)',
+ self.assert_correct_output('AssertionError in:\n assert(add(1,2)==3)',
result.get('error')
)
- self.assert_correct_output('AssertionError in: assert(add(-1,2)==1)',
+ self.assert_correct_output('AssertionError in:\n assert(add(-1,2)==1)',
result.get('error')
)
- self.assert_correct_output('AssertionError in: assert(add(-1,-2)==-3)',
+ self.assert_correct_output('AssertionError in:\n assert(add(-1,-2)==-3)',
result.get('error')
)
@@ -110,10 +110,10 @@ class PythonAssertionEvaluationTestCases(EvaluatorBaseTest):
# Then
self.assertFalse(result.get('success'))
self.assertEqual(result.get('weight'), 2.0)
- self.assert_correct_output('AssertionError in: assert(add(-1,2)==1)',
+ self.assert_correct_output('AssertionError in:\n assert(add(-1,2)==1)',
result.get('error')
)
- self.assert_correct_output('AssertionError in: assert(add(-1,-2)==-3)',
+ self.assert_correct_output('AssertionError in:\n assert(add(-1,-2)==-3)',
result.get('error')
)
diff --git a/yaksh/static/yaksh/css/dashboard.css b/yaksh/static/yaksh/css/dashboard.css
index 3049ef0..28040c4 100644
--- a/yaksh/static/yaksh/css/dashboard.css
+++ b/yaksh/static/yaksh/css/dashboard.css
@@ -84,25 +84,6 @@ body {
border-bottom: 1px solid #eee;
}
-
-/*
- * Placeholder dashboard ideas
- */
-
-.placeholders {
- margin-bottom: 30px;
- text-align: center;
-}
-.placeholders h4 {
- margin-bottom: 0;
-}
-.placeholder {
- margin-bottom: 20px;
-}
-.placeholder img {
- display: inline-block;
- border-radius: 50%;
-}
.sidebar-right {
float: right;
}
--
cgit
From 51ddfe4b5876c99077db9de130eec01a40787d59 Mon Sep 17 00:00:00 2001
From: prathamesh
Date: Fri, 13 Jan 2017 17:00:44 +0530
Subject: rectified the test for mcq incorrect.
---
yaksh/test_models.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
(limited to 'yaksh')
diff --git a/yaksh/test_models.py b/yaksh/test_models.py
index 1a6bcba..91d8806 100644
--- a/yaksh/test_models.py
+++ b/yaksh/test_models.py
@@ -609,7 +609,7 @@ class AnswerPaperTestCases(unittest.TestCase):
def test_mcq_incorrect_answer(self):
# Given
- mcq_answer = 'a'
+ mcq_answer = 'b'
self.answer = Answer(question=self.question2,
answer=mcq_answer,
)
@@ -623,7 +623,7 @@ class AnswerPaperTestCases(unittest.TestCase):
)
# Then
- self.assertTrue(result['success'])
+ self.assertFalse(result['success'])
def test_mcc_incorrect_answer(self):
# Given
--
cgit