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) })
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 })
def avoid_children(self, reason): for testable in self.testable: testable.result = Result(self.testable.result.value, reason) testable.status = Status.Avoided
def handle_skip(self, trace): self.testable.result = Result(Result.Skipped, trace) self.avoid_children(trace)
def handle_error(self, trace): self.testable.result = Result(Result.Errored, trace) self.avoid_children(trace)