summaryrefslogtreecommitdiff
path: root/yaksh/tests/test_code_server.py
diff options
context:
space:
mode:
authorankitjavalkar2016-11-16 11:25:30 +0530
committerankitjavalkar2016-11-16 11:25:30 +0530
commitb32d7e91fe608c4cbd09b50520d4a3cab75d2e53 (patch)
treeab726e234a2c72aa3a926a2ed70ae54e9b8919ee /yaksh/tests/test_code_server.py
parent232c4480d47b75fcdb523e5ebb601959c56e40dc (diff)
downloadonline_test-b32d7e91fe608c4cbd09b50520d4a3cab75d2e53.tar.gz
online_test-b32d7e91fe608c4cbd09b50520d4a3cab75d2e53.tar.bz2
online_test-b32d7e91fe608c4cbd09b50520d4a3cab75d2e53.zip
Change test_case weightage field name to weight
Diffstat (limited to 'yaksh/tests/test_code_server.py')
-rw-r--r--yaksh/tests/test_code_server.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/yaksh/tests/test_code_server.py b/yaksh/tests/test_code_server.py
index 19560e4..1984c6c 100644
--- a/yaksh/tests/test_code_server.py
+++ b/yaksh/tests/test_code_server.py
@@ -40,7 +40,7 @@ class TestCodeServer(unittest.TestCase):
testdata = {'user_answer': 'while True: pass',
'partial_grading': False,
'test_case_data': [{'test_case':'assert 1==2',
- 'weightage': 0.0
+ 'weight': 0.0
}
]}
@@ -59,7 +59,7 @@ class TestCodeServer(unittest.TestCase):
testdata = {'user_answer': 'def f(): return 1',
'partial_grading': False,
'test_case_data': [{'test_case':'assert f() == 1',
- 'weightage': 0.0
+ 'weight': 0.0
}
]}
@@ -78,7 +78,7 @@ class TestCodeServer(unittest.TestCase):
testdata = {'user_answer': 'def f(): return 1',
'partial_grading': False,
'test_case_data': [{'test_case':'assert f() == 2',
- 'weightage': 0.0
+ 'weight': 0.0
}
]}
@@ -101,7 +101,7 @@ class TestCodeServer(unittest.TestCase):
testdata = {'user_answer': 'while True: pass',
'partial_grading': False,
'test_case_data': [{'test_case':'assert 1==2',
- 'weightage': 0.0
+ 'weight': 0.0
}
]}
result = self.code_server.run_code(