@@ -65,21 +65,6 @@ def post_process(self):
6565
6666
6767class FunctionalSample (object ):
68- # def to_error_dict(self):
69- # err = {
70- # "error_msg": self.error_msg,
71- # "error_trace": self.error_trace,
72- # "status": self.status,
73- # }
74- # if getattr(self, "actionId", None):
75- # err["actionId"] = self.actionId
76- # return err
77-
78- # def __init__(
79- # self, test_case, test_suite, status,
80- # start_time, duration, error_msg, error_trace,
81- # extras=None, subsamples=None, path=None, actionId=None
82- # ):
8368 def __init__ (
8469 self , test_case , test_suite , status ,
8570 start_time , duration , error_msg , error_trace ,
@@ -105,7 +90,6 @@ def __init__(
10590 self .extras = extras or {}
10691 self .subsamples = subsamples or []
10792 self .path = path or []
108- # self.actionId = actionId
10993
11094 def get_fqn (self ):
11195 if self .path :
@@ -278,22 +262,9 @@ def _samples_from_row(self, row):
278262 result .extend ([sub for sub in subsamples if sub .get_type () == 'transaction' ])
279263 else :
280264 sample = FunctionalSample (test_case = row ["test_case" ], test_suite = row ["test_suite" ],
281- status = row ["status" ], start_time = row ["start_time" ], duration = row ["duration" ],
282- error_msg = row ["error_msg" ], error_trace = row ["error_trace" ],
283- extras = row .get ("extras" , {}), subsamples = subsamples , path = row .get ("path" , []))
284- # sample = FunctionalSample(
285- # test_case=row["test_case"],
286- # test_suite=row["test_suite"],
287- # status=row["status"],
288- # start_time=row["start_time"],
289- # duration=row["duration"],
290- # error_msg=row["error_msg"],
291- # error_trace=row["error_trace"],
292- # extras=row.get("extras", {}),
293- # subsamples=subsamples,
294- # path=row.get("path", []),
295- # actionId=row.get("actionId") or row.get("action_id")
296- # )
265+ status = row ["status" ], start_time = row ["start_time" ], duration = row ["duration" ],
266+ error_msg = row ["error_msg" ], error_trace = row ["error_trace" ],
267+ extras = row .get ("extras" , {}), subsamples = subsamples , path = row .get ("path" , []))
297268 result .append (sample )
298269 return result
299270
0 commit comments