pytest-csv
pytest-csv copied to clipboard
"test_file" parameter interpreted as a column and raising a KeyError
If we try the run a pytest with a test file parameter:
pytest test_file:Test01 --csv tests.csv --csv-columns function,status,duration,parameters_as_columns
It gets interpreted as a column in the "config.option".
The current workaround is to put the --csv-columns with it's columns names in the middle of the pytest command, or just adding an other parameter --csv-delimiter ';' at the end of the command.
Can you still reproduce this issue ? I added a test in 5f317cc4886bbe5e96bc46ad7bb81c725503bfe5 but it seems to work fine.