Answers for "pytest loop"

0

pytest loop

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
Posted by: Guest on March-24-2021

Python Answers by Framework

Browse Popular Code Answers by Language