method: test.rest.RestReporter.failures

*Not documented*
    def failures(self):

origin: test.rest.RestReporter

where:

function source:

def failures(self):
    tbstyle = self.config.option.tbstyle
    if self.failed_tests_outcome:
        self.add_rest(Title('Exceptions:', belowchar='+'))
    for i, event in enumerate(self.failed_tests_outcome):
        if i > 0:
            self.add_rest(Transition())
        if isinstance(event, report.ReceivedItemOutcome):
            host = self.get_host(event)
            itempath = self.get_path_from_item(event.item)
            root = self.get_rootpath(event.item)
            link = self.get_linkwriter().get_link(root, event.item.fspath)
            t = Title(belowchar='+')
            if link:
                t.add(Link(itempath, link))
            else:
                t.add(Text(itempath))
            t.add(Text('on %s' % (host,)))
            self.add_rest(t)
            if event.outcome.signal:
                self.repr_signal(event.item, event.outcome)
            else:
                self.repr_failure(event.item, event.outcome, tbstyle)
        else:
            itempath = self.get_path_from_item(event.item)
            root = self.get_rootpath(event.item)
            link = self.get_linkwriter().get_link(root, event.item.fspath)
            t = Title(abovechar='+', belowchar='+')
            if link:
                t.add(Link(itempath, link))
            else:
                t.add(Text(itempath))
            out = outcome.Outcome(excinfo=event.excinfo)
            self.repr_failure(event.item,
                              outcome.ReprOutcome(out.make_repr()),
                              tbstyle)

call sites:

called in /home/johnny/projects/merlinux/py/dist/py/test/rsession/testing/test_rest.py

traceback test.rest.RestReporter.failures.0

called in /home/johnny/projects/merlinux/py/dist/py/test/rsession/rest.py

traceback test.rest.RestReporter.failures.1

called in /home/johnny/projects/merlinux/py/dist/py/test/rsession/testing/test_rest.py

traceback test.rest.RestReporter.failures.2

called in /home/johnny/projects/merlinux/py/dist/py/test/rsession/testing/test_rest.py

traceback test.rest.RestReporter.failures.3