*Not documented*
def skips(self):
origin: test.rest.RestReporter
where:
function source:
def skips(self):
# XXX hrmph, copied code
texts = {}
for event in self.skipped_tests_outcome:
colitem = event.item
if isinstance(event, report.ReceivedItemOutcome):
outcome = event.outcome
text = outcome.skipped
itemname = self.get_item_name(event, colitem)
elif isinstance(event, report.SkippedTryiter):
text = str(event.excinfo.value)
itemname = "/".join(colitem.listnames())
if text not in texts:
texts[text] = [itemname]
else:
texts[text].append(itemname)
if texts:
self.add_rest(Title('Reasons for skipped tests:', belowchar='+'))
for text, items in texts.items():
for item in items:
self.add_rest(ListItem('%s: %s' % (item, text)))
called in /home/johnny/projects/merlinux/py/dist/py/test/rsession/testing/test_rest.py
traceback test.rest.RestReporter.skips.0
called in /home/johnny/projects/merlinux/py/dist/py/test/rsession/testing/test_rest.py
traceback test.rest.RestReporter.skips.1
called in /home/johnny/projects/merlinux/py/dist/py/test/rsession/rest.py