fix: 1.修复了不同的 `case` 目录下,但 `py` 文件的名称一样,导出(`manage.py csvctl -p2c`)数据有问题;2.增加了 `YouQu` 最新版本的检查,如果本地执行版本不是最新的,会打印更新提示信息;
Description: Log:
This commit is contained in:
parent
c38f701cc9
commit
3b516e8c42
|
@ -2,10 +2,15 @@
|
|||
|
||||
## 2.2.5(unreleased)
|
||||
|
||||
**New**
|
||||
|
||||
- 增加了 `YouQu` 最新版本的检查,如果本地执行版本不是最新的,会打印更新提示信息;
|
||||
|
||||
**Fix**
|
||||
|
||||
- 修复 `youqu` 命令无法接受带空格的参数的问题;感谢 **[@禄烨](https://github.com/lu-xianseng)** ;
|
||||
- 修复 `youqu` 命令无法接收带空格的参数的问题;感谢 **[@禄烨](https://github.com/lu-xianseng)** ;
|
||||
- `OCR` 检测模型升级到 `V4` 之后,在识别某些文本情况下出现不能识别的问题,暂时先回滚到 `V3` ;
|
||||
- 修复了不同的 `case` 目录下,但 `py` 文件的名称一样,导出(`manage.py csvctl -p2c`)数据有问题;感谢 **@赵有志**;
|
||||
|
||||
-----------------------
|
||||
|
||||
|
|
|
@ -43,13 +43,15 @@ class RequestX:
|
|||
opener.open(requests)
|
||||
return opener
|
||||
|
||||
def open_url(self, url, data=None):
|
||||
def open_url(self, url, data=None, timeout=None):
|
||||
"""
|
||||
访问url
|
||||
:param url:
|
||||
:return:
|
||||
"""
|
||||
response = self.session.open(url, data=data).read().decode()
|
||||
if timeout is None:
|
||||
timeout = object()
|
||||
response = self.session.open(url, data=data, timeout=timeout).read().decode()
|
||||
return response
|
||||
|
||||
|
||||
|
|
|
@ -35,6 +35,7 @@ import letmego
|
|||
|
||||
from src import logger
|
||||
from src.rtk._base import Args
|
||||
from src.requestx import RequestX
|
||||
from src.rtk._base import transform_app_name
|
||||
|
||||
environ["DISPLAY"] = ":0"
|
||||
|
@ -84,7 +85,17 @@ class LocalRunner:
|
|||
**kwargs,
|
||||
):
|
||||
logger("INFO")
|
||||
|
||||
try:
|
||||
github_tags = RequestX().open_url(
|
||||
f"https://api.github.com/repos/linuxdeepin/deepin-autotest-framework/tags",
|
||||
timeout=1
|
||||
)
|
||||
latest_tag = json.loads(github_tags)[0].get("name")
|
||||
if GlobalConfig.current_tag != latest_tag:
|
||||
print(f"YouQu最新版本为: {latest_tag},当前使用版本为: {GlobalConfig.current_tag}")
|
||||
print(f"建议使用:sudo pip3 install youqu=={latest_tag} 升级版本。")
|
||||
except Exception:
|
||||
pass
|
||||
self.default = {
|
||||
Args.app_name.value: transform_app_name(app_name if app_name or case_file else GlobalConfig.APP_NAME),
|
||||
Args.keywords.value: keywords or GlobalConfig.KEYWORDS,
|
||||
|
|
Loading…
Reference in New Issue