From 6c12f531f3ee6d03e22f4abff5c4ea3c1b53c06b Mon Sep 17 00:00:00 2001 From: debugtalk Date: Fri, 5 Jun 2020 11:36:19 +0800 Subject: [PATCH] refactor: update TStep extract/export type --- httprunner/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/httprunner/models.py b/httprunner/models.py index e1cb7a37..99c41091 100644 --- a/httprunner/models.py +++ b/httprunner/models.py @@ -67,9 +67,9 @@ class TStep(BaseModel): setup_hooks: Hook = [] teardown_hooks: Hook = [] # used to extract request's response field - extract: Dict[Text, Text] = {} + extract: VariablesMapping = {} # used to export session variables from referenced testcase - export: List[Text] = [] + export: Export = [] validators: Validators = Field([], alias="validate") validate_script: List[Text] = []