mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-12 02:21:29 +08:00
refactor: rename TestStep model field, validators
This commit is contained in:
@@ -52,7 +52,7 @@ class TestCaseRunner(object):
|
||||
variables_mapping.update(extract_mapping)
|
||||
|
||||
# validate
|
||||
validators = step.validation
|
||||
validators = step.validators
|
||||
resp_obj.validate(validators, variables_mapping)
|
||||
|
||||
return extract_mapping
|
||||
|
||||
@@ -59,4 +59,4 @@ class TestStep(BaseModel):
|
||||
request: Request
|
||||
variables: VariablesMapping = {}
|
||||
extract: Dict[Text, Text] = {}
|
||||
validation: Validators = Field([], alias="validate")
|
||||
validators: Validators = Field([], alias="validate")
|
||||
|
||||
Reference in New Issue
Block a user