[svn r63686] fixing docstring, removing dead code.
--HG-- branch : trunk
This commit is contained in:
parent
c516e895fd
commit
4f5020c3dd
|
@ -1,22 +1,7 @@
|
||||||
"""
|
"""
|
||||||
Collect test items at filesystem and python module levels.
|
base test collection objects.
|
||||||
|
Collectors and test Items form a tree
|
||||||
Collectors and test items form a tree. The difference
|
that is usually built iteratively.
|
||||||
between a collector and a test item as seen from the session
|
|
||||||
is smalll. Collectors usually return a list of child
|
|
||||||
collectors/items whereas items usually return None
|
|
||||||
indicating a successful test run.
|
|
||||||
|
|
||||||
The is a schematic example of a tree of collectors and test items::
|
|
||||||
|
|
||||||
Directory
|
|
||||||
Directory
|
|
||||||
CustomCollector # provided via conftest's
|
|
||||||
CustomItem # provided via conftest's
|
|
||||||
CustomItem # provided via conftest's
|
|
||||||
Directory
|
|
||||||
...
|
|
||||||
|
|
||||||
"""
|
"""
|
||||||
import py
|
import py
|
||||||
from py.__.misc.warn import APIWARN
|
from py.__.misc.warn import APIWARN
|
||||||
|
|
|
@ -156,13 +156,6 @@ class CollectionReport(BaseReport):
|
||||||
else:
|
else:
|
||||||
self.failed = True
|
self.failed = True
|
||||||
|
|
||||||
def toterminal(self, out):
|
|
||||||
longrepr = self.longrepr
|
|
||||||
if hasattr(longrepr, 'toterminal'):
|
|
||||||
longrepr.toterminal(out)
|
|
||||||
else:
|
|
||||||
out.line(str(longrepr))
|
|
||||||
|
|
||||||
class ItemSetupReport(BaseReport):
|
class ItemSetupReport(BaseReport):
|
||||||
""" Test Execution Report. """
|
""" Test Execution Report. """
|
||||||
failed = passed = skipped = False
|
failed = passed = skipped = False
|
||||||
|
|
Loading…
Reference in New Issue