Commit 26472b9b authored by Romain Courteaud's avatar Romain Courteaud 🐙

erp5_json_rpc_api: test fixup

parent 5948ab72
...@@ -190,7 +190,7 @@ class TestJsonRpcAPIConnectorView(JsonRpcAPITestCase): ...@@ -190,7 +190,7 @@ class TestJsonRpcAPIConnectorView(JsonRpcAPITestCase):
ret = self.publish( ret = self.publish(
self.connector.getPath() + '/OpenAPIService_view', user='ERP5TypeTestCase') self.connector.getPath() + '/OpenAPIService_view', user='ERP5TypeTestCase')
self.assertEqual(ret.getStatus(), 200) self.assertEqual(ret.getStatus(), 200)
self.assertNotIn(b'Error', ret.getBody()) self.assertNotIn(b'Site Error', ret.getBody())
def test_non_existing_attribute(self): def test_non_existing_attribute(self):
with self.assertRaises(AttributeError): with self.assertRaises(AttributeError):
......
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