From a8b43c5e1e0289cd20ba27809b92c3420e2dc477 Mon Sep 17 00:00:00 2001 From: debugtalk Date: Thu, 4 Jun 2020 17:02:09 +0800 Subject: [PATCH] change: rename to StepRequestExtraction --- httprunner/testcase.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/httprunner/testcase.py b/httprunner/testcase.py index 25572275..67c46c6f 100644 --- a/httprunner/testcase.py +++ b/httprunner/testcase.py @@ -172,11 +172,11 @@ class StepValidation(object): return self.__t_step -class StepExtraction(object): +class StepRequestExtraction(object): def __init__(self, step: TStep): self.__t_step = step - def with_jmespath(self, jmes_path: Text, var_name: Text) -> "StepExtraction": + def with_jmespath(self, jmes_path: Text, var_name: Text) -> "StepRequestExtraction": self.__t_step.extract[var_name] = jmes_path return self @@ -238,8 +238,8 @@ class RequestWithOptionalArgs(object): # def hooks(self): # pass - def extract(self) -> StepExtraction: - return StepExtraction(self.__t_step) + def extract(self) -> StepRequestExtraction: + return StepRequestExtraction(self.__t_step) def validate(self) -> StepValidation: return StepValidation(self.__t_step) @@ -305,7 +305,7 @@ class Step(object): def __init__( self, step: Union[ - StepValidation, StepExtraction, RequestWithOptionalArgs, RunTestCase + StepValidation, StepRequestExtraction, RequestWithOptionalArgs, RunTestCase ], ): self.__t_step = step.perform()