Answers for "pytest handling muliple cases"

0

pytest handling muliple cases

import pytest

@pytest.mark.parametrized("input", "expected", [
	(1, 1),
  	('a', 'a'),
  	("One", "One")
])
def test_check_input_and_expected(input, expected):
	assert ( input == expected )
Posted by: Guest on March-08-2022

Python Answers by Framework

Browse Popular Code Answers by Language