2024年6月24日

【python】编码规范

摘要: 【编码规范】实例属性 【实例属性】应该是隐藏的,只允许通过类提供的方法来间接实现对实例属性的访问和操作 【解决】 【办法一】property() 属性名 = property(fget=None, fset=None, fdel=None, doc=None) fget:用于获取属性的方法 fset 阅读全文

posted @ 2024-06-24 20:25 彩屏黑白 阅读(1) 评论(0) 推荐(0) 编辑

【pytest】 allure 相关

摘要: 【诉求】需要在allure 新增性能数据打印 【时间】2024 6/21 【解决】使用allure.attach解决 pytest(12)-Allure常用特性allure.attach、allure.step、fixture、environment、categories-阿里云开发者社区 (ali 阅读全文

posted @ 2024-06-24 10:32 彩屏黑白 阅读(1) 评论(0) 推荐(0) 编辑

导航