Additional renamer test scenarios
This commit is contained in:
parent
d0409aa6bb
commit
e0733a2ce6
@ -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"
|
||||
|
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user