kuto
Advanced tools
| Metadata-Version: 2.1 | ||
| Name: kuto | ||
| Version: 0.0.74 | ||
| Version: 0.0.75 | ||
| Summary: 全平台自动化测试框架 | ||
@@ -5,0 +5,0 @@ Home-page: https://gitee.com/bluepang2021/kuto |
+1
-1
@@ -14,3 +14,3 @@ from allure import * | ||
| __version__ = "0.0.74" | ||
| __version__ = "0.0.75" | ||
| __description__ = "全平台自动化测试框架" |
@@ -51,2 +51,3 @@ # @Time : 2022/2/11 9:00 | ||
| paths = data_json.get('paths') | ||
| print(len(paths)) | ||
| api_list = [] | ||
@@ -57,5 +58,3 @@ for apiPath, value in paths.items(): | ||
| apiPath = apiPath.replace('}', '') | ||
| print(apiPath) | ||
| for method, content in value.items(): | ||
| print(content) | ||
| tag = content['tags'][0] | ||
@@ -82,13 +81,21 @@ if is_chinese(tag): | ||
| _ref = _schema["originalRef"] | ||
| _param = data_json["definitions"][_ref]['properties'] | ||
| try: | ||
| _param = data_json["definitions"][_ref]['properties'] | ||
| except: | ||
| _param = param | ||
| _param["type"] = "--" | ||
| else: | ||
| _items = _schema.get("items") | ||
| if _items.get('originalRef', None) is not None: | ||
| _ref = _schema["items"]["originalRef"] | ||
| _param = data_json["definitions"][_ref]['properties'] | ||
| _param = [_param] | ||
| _items = _schema.get("items", None) | ||
| if _items is not None: | ||
| if _items.get('originalRef', None) is not None: | ||
| _ref = _schema["items"]["originalRef"] | ||
| _param = data_json["definitions"][_ref]['properties'] | ||
| _param = [_param] | ||
| else: | ||
| _param = param | ||
| _param["type"] = param["schema"]["items"]["type"] | ||
| _param = [_param] | ||
| else: | ||
| _param = param | ||
| _param["type"] = param["schema"]["items"]["type"] | ||
| _param = [_param] | ||
| _param["type"] = param["schema"]["type"] | ||
@@ -99,4 +106,4 @@ if _param is not None: | ||
| api_list.append([method, project, moduleName, moduleDesc, apiPath, apiDesc, params]) | ||
| for index, api in enumerate(api_list): | ||
| print(index, api) | ||
| # for index, api in enumerate(api_list): | ||
| # print(index, api) | ||
| return api_list | ||
@@ -103,0 +110,0 @@ |
+1
-1
| Metadata-Version: 2.1 | ||
| Name: kuto | ||
| Version: 0.0.74 | ||
| Version: 0.0.75 | ||
| Summary: 全平台自动化测试框架 | ||
@@ -5,0 +5,0 @@ Home-page: https://gitee.com/bluepang2021/kuto |
Alert delta unavailable
Currently unable to show alert delta for PyPI packages.
229535
0.16%5512
0.13%