Commit 1708ba59 by Vik Paruchuri

Fix issues with generic stuff

parent f238e7db
......@@ -108,7 +108,7 @@ class GenericTest(object):
self.assertTrue(results['success'])
grader = Grader(results)
grader.grade(self.text[0])
results = grader.grade(self.text[0])
self.assertTrue(results['success'])
def test_scoring_accuracy(self):
......@@ -134,10 +134,10 @@ class GenericTest(object):
grader = Grader(results)
test_text = {
'textual_values' : [[self.text[0]]],
'numeric_values' : [[1]]
'textual_values' : [self.text[0]],
'numeric_values' : [1]
}
grader.grade(test_text)
results = grader.grade(test_text)
self.assertTrue(results['success'])
class PolarityTest(unittest.TestCase,GenericTest):
......
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