I am writing a test, using @pytest.mark.parametrize. The test looks like this:
@pytest.mark.parametrize(
"device_type,first_command,second_command",
[
pytest.param(
<device_type>,
<first_command>,
<second_command>,
id=str(<first_command>) + "," + str(<second_command>),
),
....
]
)
Actually <first_command> and <second_command> are commands from a list of commands, defined in an enumeration, and i have to check all possible combinations whether they are executed successfully. Is it possible to create automatically this param list instead of explicitly mentioning every possible combination of 2 commands?