09 2024 档案

pycharm安装faker库失败
摘要:报错信息: ERROR: Could not find a version that satisfies the requirement faker (from versions: none)ERROR: No matching distribution found for faker 解决方法:换 阅读全文

posted @ 2024-09-04 15:30 宋霏 阅读(36) 评论(0) 推荐(0) 编辑

Linux:Job for network.service failed because the control process exited with error code
摘要:1、su root 2、输入密码 3、systemctl restart network 报错:Job for network.service failed because the control process exited with error code 4、systemctl status n 阅读全文

posted @ 2024-09-03 21:27 宋霏 阅读(807) 评论(0) 推荐(0) 编辑

pycharm报错:TypeError: unhashable type: 'slice'
摘要:一、原因:没有使用正确的数组或没有使用正确的读取数据的方式 二、因为我在yaml中,传参用的是字典格式 三、但是 @pytest.mark.parametrize("",[ ]),需要传数组 import pytest # 数组的形式 @pytest.mark.parametrize("name,w 阅读全文

posted @ 2024-09-03 19:42 宋霏 阅读(85) 评论(0) 推荐(0) 编辑

python如何获取动态绝对路径
摘要:代码如下: 先获取当前 再获取当前的父目录 再获取父目录的父目录,找到根目录了 再join想要的目录名+文件名 import os print(os.path.realpath(__file__)) # D:\My-Test\ApiTest\utils\test.py print(os.path.d 阅读全文

posted @ 2024-09-03 17:28 宋霏 阅读(15) 评论(0) 推荐(0) 编辑

pycharm:报错,执行用例提示找不到yaml文件(写死绝对路径)
摘要:一、报错信息如下: 二、原因:yaml在config目录下,测试文件在test cases目录下,跨目录时不能使用相对路径!! 三、copy绝对路径 1、右键yaml文件 2、点击 四、把路径复制到yaml中 阅读全文

posted @ 2024-09-03 17:15 宋霏 阅读(206) 评论(0) 推荐(0) 编辑

pycharm报错-Cannot start process, the working directory 'xxx'
摘要:一、运行main方法报错,但是运行单个用例不报错 错误提示: 二、原因:竟然是因为我修改了包名 三、找到edit Configuration 四、把路径修改正确 五、🆗了 阅读全文

posted @ 2024-09-03 12:02 宋霏 阅读(229) 评论(0) 推荐(0) 编辑

pycharm警告 :PytestConfigWarning: Unknown config option: makers
摘要:一、PytestConfigWarning: Unknown config option: makers 虽然不影响执行测试用例,但是,追求完美的我很想解决掉他! 二、找报错的单词在哪,大概率这种报错在ini文件 我的makers在pytest.ini。起初是想打标签,但是标签的注解是@pytest 阅读全文

posted @ 2024-09-02 20:37 宋霏 阅读(69) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

统计

点击右上角即可分享
微信分享提示