随笔分类 -  pytest

pytest框架2---前置后置,夹具fixture的使用
摘要:一、前置后置 1.经典的xunit风格,可在模块,类,函数实现fixture 模块级别 def setup_module(): print('****************在整个模块开始执行一次*************') def teardown_module(): print('****** 阅读全文

posted @ 2022-03-31 16:18 大头~~ 阅读(95) 评论(0) 推荐(0)

pytest框架1---安装与简单使用pytest
摘要:一、简介 1. 什么是pytest python的测试框架 第三方 成熟的 功能齐全的 官网地址:https://docs.pytest.org/en/7.1.x/ 2. 安装方法 pip install pytest 二、基本使用 1、发现用例的规则 如果不给参数,默认从当前目录或者配置中的tes 阅读全文

posted @ 2022-03-31 13:35 大头~~ 阅读(181) 评论(0) 推荐(0)