Commit 5c4c60c9 authored by Romain Courteaud's avatar Romain Courteaud

erp5_json_rpc_api: rename test

parent 0396a7e1
......@@ -44,7 +44,7 @@ except ImportError:
from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase
class OpenAPITestCase(ERP5TypeTestCase):
class JsonRpcAPITestCase(ERP5TypeTestCase):
_type_id = NotImplemented # type: str
_open_api_schema = NotImplemented # type: str
_open_api_schema_content_type = 'application/json'
......@@ -112,7 +112,7 @@ class OpenAPITestCase(ERP5TypeTestCase):
self.portal.changeSkin(None)
class OpenAPIPetStoreTestCase(OpenAPITestCase):
class OpenAPIPetStoreTestCase(JsonRpcAPITestCase):
_type_id = 'Test Pet Store Open API'
@property
......@@ -379,7 +379,7 @@ class TestOpenAPIServicePetController(OpenAPIPetStoreTestCase):
@unittest.skipIf(yaml is None, 'PyYAML is required for yaml tests')
class TestOpenAPIServiceYaml(OpenAPITestCase):
class TestOpenAPIServiceYaml(JsonRpcAPITestCase):
_type_id = 'Test Open API YAML'
_open_api_schema_content_type = 'application/x-yaml'
_open_api_schema = '''
......@@ -410,7 +410,7 @@ paths:
self.assertEqual(response.getStatus(), 200)
class TestPathParameterSerialization(OpenAPITestCase):
class TestPathParameterSerialization(JsonRpcAPITestCase):
_type_id = 'Test Open API Parameter Serialization'
@property
......@@ -507,7 +507,7 @@ class TestPathParameterSerialization(OpenAPITestCase):
self.assertEqual(response.getStatus(), 200)
class TestQueryParameterSerialization(OpenAPITestCase):
class TestQueryParameterSerialization(JsonRpcAPITestCase):
_type_id = 'Test Open API Parameter Serialization'
@property
......@@ -1251,7 +1251,7 @@ class TestURLPathWithWebSiteAndVirtualHost(OpenAPIPetStoreTestCase):
self.assertEqual(response.getBody(), b'"ok"')
class TestOpenAPIRequestBody(OpenAPITestCase):
class TestOpenAPIRequestBody(JsonRpcAPITestCase):
_type_id = 'Test Open API Request Body'
_open_api_schema = json.dumps(
......
......@@ -8,7 +8,7 @@
<dictionary>
<item>
<key> <string>default_reference</string> </key>
<value> <string>testOpenAPIService</string> </value>
<value> <string>testJsonRpcAPIService</string> </value>
</item>
<item>
<key> <string>description</string> </key>
......@@ -18,7 +18,7 @@
</item>
<item>
<key> <string>id</string> </key>
<value> <string>test.erp5.testOpenAPIService</string> </value>
<value> <string>test.erp5.testJsonRpcAPIService</string> </value>
</item>
<item>
<key> <string>sid</string> </key>
......
test.erp5.testOpenAPIService
\ No newline at end of file
test.erp5.testJsonRpcAPIService
\ No newline at end of file
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