Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pytest - parameterizing tests



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
Source by www.tutorialspoint.com #
 
PREVIOUS NEXT
Tagged: #pytest #parameterizing #tests
ADD COMMENT
Topic
Name
6+8 =