📜  pytest 循环 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:16.680000             🧑  作者: Mango

代码示例1
import pytest

@pytest.mark.parametrize("num, output",[(1,11),(2,22),(3,35),(4,44)])
def test_multiplication_11(num, output):
   assert 11*num == output