Esempio n. 1
0
 def _generate_metadata(self):
     return TestSuiteMetadata(
         **{
             'name': self.obj.name,
             'tags': self.obj.tags,
             'path': self._path,
             'uid': uid.SuiteUID(self._path, self.obj.name),
             'status': Status.Unscheduled,
             'result': Result(Result.NotRun)
         })
Esempio n. 2
0
 def _generate_metadata(self):
     return TestCaseMetadata(
         **{
             'name':
             self.obj.name,
             'path':
             self._path,
             'uid':
             uid.TestUID(self._path, self.obj.name, self.parent_suite.name),
             'status':
             Status.Unscheduled,
             'result':
             Result(Result.NotRun),
             'suite_uid':
             self.parent_suite.metadata.uid
         })
Esempio n. 3
0
 def avoid_children(self, reason):
     for testable in self.testable:
         testable.result = Result(self.testable.result.value, reason)
         testable.status = Status.Avoided
Esempio n. 4
0
 def handle_skip(self, trace):
     self.testable.result = Result(Result.Skipped, trace)
     self.avoid_children(trace)
Esempio n. 5
0
 def handle_error(self, trace):
     self.testable.result = Result(Result.Errored, trace)
     self.avoid_children(trace)