当前位置:网站首页>Pytest (3) parameterize
Pytest (3) parameterize
2022-07-02 06:33:00 【bthtth】
import pytest
datas_list = [(" Li Hua ",24),(" Zhang San ",43))
@pytest.mark.parametrize("data",datas_list)
def test_print(data):
print(" I am a {0}, This year, {1} year ".format(data[0],data[1]))
parametrize(" Parameter name ", Organize a list of data )
# Parameter name , It is used to receive the data that each group needs to transmit
# Organize a list of data , No need to add *
# Parameter name Want to be with The formal parameter names of use case functions are the same
# Compare ddt, Parameter name is not required , The list needs to add *
@ddt
@data(*datas_list)
def test_print(data)
print(" I am a {0}, This year, {1} year ".format(data[0],data[1]))边栏推荐
- Sentinel rules persist to Nacos
- 最新CUDA环境配置(Win10 + CUDA 11.6 + VS2019)
- Redis - cluster data distribution algorithm & hash slot
- Codeforces Round #797 (Div. 3) A—E
- selenium的web自动化中常用的js-修改元素属性翻页
- automation - Jenkins pipline 执行 nodejs 命令时,提示 node: command not found
- Warp shuffle in CUDA
- Hydration failed because the initial UI does not match what was rendered on the server.问题原因之一
- 自学table au
- CUDA中的Warp Shuffle
猜你喜欢
随机推荐
找到页面当前元素z-index最高的数值
Redis---1. Data structure characteristics and operation
web自动化切换窗口时报错“list“ object is not callable
链表(线性结构)
看完有用的blog
MySQL的10大经典错误
pytest(2) mark功能
MySql索引
【程序员的自我修养]—找工作反思篇二
qq邮箱接收不到jenkins构建后使用email extension 发送的邮件(timestamp 或 auth.......)
标签属性disabled selected checked等布尔类型赋值不生效?
一口气说出 6 种实现延时消息的方案
Name six schemes to realize delayed messages at one go
构建学习tensorflow
AWD学习
Redis - hot key issues
CUDA中的函数执行空间说明符
Android - Kotlin 下使用 Room 遇到 There are multiple good constructors and Room will ... 问题
CUDA中的动态全局内存分配和操作
CUDA中内置的Vector类型和变量









