I have a parametrized pytest test and use tuples as expected values.
If I run the tests, these values are not displayed and auto-generated ones (expected0...expectedN) are shown in the report.
Is it possible to have tuple values displayed in the output?
Test sample:
@pytest.mark.parametrize('test_input, expected',
[
('12:00 AM', (0, 0)),
('12:01 AM', (0, 1)),
('11:59 AM', (11, 58))
])
def test_params(test_input, expected):
assert time_calculator.convert_12h_to_24(test_input) == expected
Output:
test_time_converter.py::test_params[12:00 AM-expected0] PASSED test_time_converter.py::test_params[12:01 AM-expected1] PASSED test_time_converter.py::test_params[11:59 AM-expected2] FAILED