Additional renamer test scenarios

This commit is contained in:
Jürgen Edelbluth 2022-08-17 11:43:09 +02:00
parent d0409aa6bb
commit e0733a2ce6
Signed by: jed
GPG Key ID: 6DEAEDD5CDB646DF
2 changed files with 15 additions and 1 deletions

View File

@ -1,6 +1,6 @@
[tool.poetry]
name = "pytest-csv-params"
version = "0.3.0"
version = "0.3.1"
description = "Pytest plugin for Test Case Parametrization with CSV files"
authors = ["Juergen Edelbluth <csv_params@jued.de>"]
license = "MIT"

View File

@ -41,6 +41,20 @@ from pytest_csv_params.types import HeaderRenames
"Header names are not unique",
None,
),
(
["next_var", "_be:ta_ :23", "Ra -/2"],
{"Ra -/2": "ra", "not here": "not_here"},
None,
None,
["next_var", "_be_ta___23", "ra"],
),
(
["next", "_be:ta_ :23", "Ra -/2"],
None,
CsvHeaderNameInvalid,
f"'next' is not a valid variable name",
None,
),
],
)
def test_header_cleaning(