Horje
pytest loop Code Example
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




Python

Related
Python program to get the file size of a plain file. Code Example Python program to get the file size of a plain file. Code Example
tkinter gui grid and frame Code Example tkinter gui grid and frame Code Example
openpyxl delete column by name Code Example openpyxl delete column by name Code Example
set value based on column Code Example set value based on column Code Example
remove stopwords from list of strings python Code Example remove stopwords from list of strings python Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7