Python测试框架pytest系列可以查看下列
Python测试框架pytest(01)简介、安装、快速入门_编程简单学的博客-CSDN博客
Python测试框架pytest(02)PyCharm设置运行pytest、pytest.main()_编程简单学的博客-CSDN博客
软件测试资料领取方式 (#1) · Issue · 可可爱爱的程序员 / 软件测试资料合集 · GIT CODE
————————————————
1、在测试用例里面断言失败,结果为failed。
创建test_fixture_failed.py文件
脚本代码:
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
微信公众号:AllTests软件测试
"""
import pytest
@pytest.fixture()
def user():
print