aboutsummaryrefslogtreecommitdiffstats
path: root/tests/api/test_eval.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/api/test_eval.py')
-rw-r--r--tests/api/test_eval.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/api/test_eval.py b/tests/api/test_eval.py
index a5b83fd..03f0e39 100644
--- a/tests/api/test_eval.py
+++ b/tests/api/test_eval.py
@@ -9,8 +9,9 @@ class TestEvalResource(SnekAPITestCase):
result = self.simulate_post(self.PATH, json=body)
self.assertEqual(result.status_code, 200)
- self.assertEqual(body["input"], result.json["input"])
- self.assertEqual("test output", result.json["output"])
+ self.assertEqual("output", result.json["stdout"])
+ self.assertEqual("error", result.json["stderr"])
+ self.assertEqual(0, result.json["returncode"])
def test_post_invalid_schema_400(self):
body = {"stuff": "foo"}
@@ -26,7 +27,7 @@ class TestEvalResource(SnekAPITestCase):
self.assertEqual(expected, result.json)
def test_post_invalid_content_type_415(self):
- body = "{\"input\": \"foo\"}"
+ body = "{'input': 'foo'}"
headers = {"Content-Type": "application/xml"}
result = self.simulate_post(self.PATH, body=body, headers=headers)