change: remove unused model fields

This commit is contained in:
debugtalk
2020-05-16 13:12:39 +08:00
parent a820269a56
commit d70f697501
2 changed files with 3 additions and 8 deletions
+2 -4
View File
@@ -135,7 +135,7 @@ class HttpRunner(object):
.with_variables(step_variables) .with_variables(step_variables)
.run_path(ref_testcase_path) .run_path(ref_testcase_path)
) )
step_data.data = case_result.get_summary() # list of step data step_data.data = case_result.get_step_datas() # list of step data
step_data.export = case_result.get_export_variables() step_data.export = case_result.get_export_variables()
step_data.success = case_result.success step_data.success = case_result.success
self.success &= case_result.success self.success &= case_result.success
@@ -235,8 +235,6 @@ class HttpRunner(object):
start_at_iso_format=start_at_iso_format, start_at_iso_format=start_at_iso_format,
duration=self.__duration, duration=self.__duration,
), ),
# status=result.status,
# attachment=result.attachment,
in_out=TestCaseInOut( in_out=TestCaseInOut(
vars=self.config.variables, export=self.get_export_variables() vars=self.config.variables, export=self.get_export_variables()
), ),
@@ -245,4 +243,4 @@ class HttpRunner(object):
def test_start(self): def test_start(self):
"""discovered by pytest""" """discovered by pytest"""
self.run(TestCase(config=self.config, teststeps=self.teststeps)) return self.run(TestCase(config=self.config, teststeps=self.teststeps))
+1 -4
View File
@@ -137,7 +137,6 @@ class SessionData(BaseModel):
class StepData(BaseModel): class StepData(BaseModel):
"""teststep data, each step maybe corresponding to one request or one testcase""" """teststep data, each step maybe corresponding to one request or one testcase"""
success: bool = False success: bool = False
name: Text = "" # teststep name name: Text = "" # teststep name
data: Union[SessionData, List[SessionData]] = None data: Union[SessionData, List[SessionData]] = None
@@ -146,9 +145,7 @@ class StepData(BaseModel):
class TestCaseSummary(BaseModel): class TestCaseSummary(BaseModel):
name: Text = "" name: Text = ""
success: bool success: bool = False
status: Text = ""
attachment: Text = ""
time: TestCaseTime time: TestCaseTime
in_out: TestCaseInOut = {} in_out: TestCaseInOut = {}
log: Text = "" log: Text = ""