CK17_学习

时间:2024-03-15 20:21:33
【文件属性】:

文件名称:CK17_学习

文件大小:21KB

文件格式:ZIP

更新时间:2024-03-15 20:21:33

Python

#项目介绍 pytest简单练习: 1,补全计算器(加法除法)的测试用例 2,使用参数化完成测试用例的自动生成 3,在调用测试方法之前打印【开始计算】,在调用测试方法之后打印【计算结束】 要求: 注意:使用等价类,边界值,因果图等设计测试用例 测试用例中添加断言,验证结果 灵活使用setup(),teardown(),setup_class(),teardown_class()


【文件预览】:
CK17_Learning-master
----pythoncode()
--------Calculator.py(304B)
--------__init__.py(92B)
----.idea()
--------workspace.xml(106KB)
--------testcal.iml(633B)
--------modules.xml(266B)
--------vcs.xml(180B)
----README.md(455B)
----testing()
--------xueqiu()
--------__init__.py(92B)
--------pytest.ini(137B)
--------test_fixture.py(1KB)
--------test_cal.py(3KB)
--------datas()
--------test_fixture_demo.py(378B)
--------conftest.py(738B)
--------test_yield.py(407B)
----pytest-encode()
--------pytest_encode()
--------test()
--------setup.py(1KB)
--------README.md(0B)
----result.xml(2KB)

网友评论