Skip to content

Commit 61bb1b1

Browse files
author
Trong Nhan Mai
committed
chore: update class name of ValidateSchemaStep
1 parent 371717c commit 61bb1b1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/integration/run.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ def cmd(self, macaron_cmd: str) -> list[str]:
216216
return self.options["cmd"].strip().split()
217217

218218

219-
class SchemaStepOptions(TypedDict):
219+
class ValidateSchemaStepOptions(TypedDict):
220220
"""The configuration options of a schema validation step."""
221221

222222
kind: str
@@ -226,7 +226,7 @@ class SchemaStepOptions(TypedDict):
226226

227227

228228
@dataclass
229-
class SchemaStep(Step[SchemaStepOptions]):
229+
class ValidateSchemaStep(Step[ValidateSchemaStepOptions]):
230230
"""A schema validation step in a test case, which allows for validating a file against a schema."""
231231

232232
@staticmethod
@@ -561,7 +561,7 @@ def gen_step_schema(cwd: str, check_expected_result_files: bool) -> cfgv.Map:
561561
condition_key="kind",
562562
condition_value="validate_schema",
563563
key="options",
564-
schema=SchemaStep.options_schema(
564+
schema=ValidateSchemaStep.options_schema(
565565
cwd=cwd,
566566
check_expected_result_files=check_expected_result_files,
567567
),
@@ -783,7 +783,7 @@ def parse_step_config(step_id: int, step_config: Mapping) -> Step:
783783
"verify": VerifyStep,
784784
"shell": ShellStep,
785785
"compare": CompareStep,
786-
"validate_schema": SchemaStep,
786+
"validate_schema": ValidateSchemaStep,
787787
}[kind]
788788
return step_cls( # type: ignore # https://github.com/python/mypy/issues/3115
789789
step_id=step_id,

0 commit comments

Comments
 (0)