摘要:
前言: # 函数参数中存在两种特殊的参数,动态参数 *args、关键字参数 **kwargs。 # 在一个函数里面只能有一个动态参数、关键字参数,可以同时存在形参、默认参数、动态参数、关键字参数 # 动态参数 *args、关键字参数 **kwargs 常用做不定长的输入。 动态参数示例代码: # 动 阅读全文
摘要:
1、目的: 解决多个assert断言中,其中一个断言失败,后续断言不再继续执行的问题。 2、使用插件: pytest-assume 3、安装: pip install pytest-assume -i https://pypi.tuna.tsinghua.edu.cn/simple 4、assert 阅读全文
摘要:
插件:pytest-html github源码: https://github.com/pytest-dev/pytest-html 安装: pip install pytest-html -i https://pypi.tuna.tsinghua.edu.cn/simple 执行: 命令行执行: 阅读全文