Skip to content

Commit 195378e

Browse files
author
RabidSheep55
committed
update test to check for EvaluationException
1 parent 570b6ca commit 195378e

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

app/evaluation_tests.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import unittest
22

3+
from evaluation_function_utils.errors import EvaluationException
4+
35
from .evaluation import evaluation_function
46

57

@@ -35,7 +37,7 @@ def test_invalid_int(self):
3537
body = {"answer": "0", "response": "1.0", "params": {"type": "int"}}
3638

3739
self.assertRaises(
38-
ValueError,
40+
EvaluationException,
3941
evaluation_function,
4042
body['response'],
4143
body['answer'],
@@ -61,7 +63,7 @@ def test_invalid_float(self):
6163
body = {"answer": "abc", "response": "1", "params": {"type": "int"}}
6264

6365
self.assertRaises(
64-
ValueError,
66+
EvaluationException,
6567
evaluation_function,
6668
body['response'],
6769
body['answer'],

0 commit comments

Comments
 (0)