import pytest def add(a,b): return (a+b) @pytest.mark.parametrize("a,b,c",[(3,5,8),(2,4,7),(5,7,12)]) def test_1(a,b,c): assert add(a,b)==c.
確定! 回上一頁