Skip to content

Commit

Permalink
fix last test ?
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinBelthle committed Oct 10, 2024
1 parent 89ef09e commit aa51649
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,10 @@ def validate_cluster_name(cls, val: str) -> str:
return to_return

@field_validator("parameters", mode="before")
def lower_cluster_group(cls, params: t.Dict[str, t.Any]) -> t.Dict[str, t.Any]:
if "group" in params:
params["group"] = params["group"].lower()
def lower_cluster_group_and_names(cls, params: t.Dict[str, t.Any]) -> t.Dict[str, t.Any]:
for key in ["name", "group"]:
if key in params:
params[key] = params[key].lower()
return params

@field_validator("prepro", mode="before")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,10 @@ def validate_cluster_name(cls, val: str) -> str:
return to_return

@field_validator("parameters", mode="before")
def lower_cluster_group(cls, params: t.Dict[str, t.Any]) -> t.Dict[str, t.Any]:
if "group" in params:
params["group"] = params["group"].lower()
def lower_cluster_group_and_names(cls, params: t.Dict[str, t.Any]) -> t.Dict[str, t.Any]:
for key in ["name", "group"]:
if key in params:
params[key] = params[key].lower()
return params

def _apply_config(self, study_data: FileStudyTreeConfig) -> t.Tuple[CommandOutput, t.Dict[str, t.Any]]:
Expand Down

0 comments on commit aa51649

Please sign in to comment.