class attributes and properties:
Class: <property object (dynamically calculated value)>
Directory: <property object (dynamically calculated value)>
DoctestFile: <property object (dynamically calculated value)>
Function: <property object (dynamically calculated value)>
Generator: <property object (dynamically calculated value)>
Instance: <property object (dynamically calculated value)>
Module: <property object (dynamically calculated value)>
obj: <property object (dynamically calculated value)>
methods:
def __init__(self, name, parent=None):
*no docstring available*
arguments:
- self: <Instance of AnyOf(Class DoctestText, Class Directory, Class DoctestText, Class MyFunction, Class ItemTestFailingExplicit, Class ReSTSyntaxTest, Class ReSTChecker, Class Directory, Class DoctestFile, Class LinkCheckerMaker, Class LinkCheckerMaker, Class ReSTChecker, Class CustomItem, Class ItemTestSkipping, Class ItemTestPassing, Class Function, Class Function, Class ReSTChecker, Class DocDirectory, Class ReSTSyntaxTest, Class Instance, Class MyDirectory, Class DoctestText, Class CheckLink, Class Item, Class DoctestText, Class Class, Class CheckLink, Class Class, Class LinkCheckerMaker, Class ItemTestPrinting, Class Module, Class DocDirectory, Class Module, Class Directory, Class DocDirectory, Class ReSTSyntaxTest, Class Directory, Class ItemTestFailing)>
- name: AnyOf(<Instance of Class LocalPath>, <String>)
- parent: AnyOf(<Instance of Class DocDirectory>, <Instance of Class Module>, <Instance of Class Instance>, <None>, <Instance of Class ReSTChecker>, <Instance of Class MyDirectory>, <Instance of Class Class>, <Instance of Class LinkCheckerMaker>, <Instance of Class Directory>, <Instance of Class DocDirectory>, <Instance of Class Module>, <Instance of Class Instance>, <Instance of Class Generator>, <Instance of Class Directory>, <Instance of Class DocDirectory>, <Instance of Class ReSTChecker>, <Instance of Class LinkCheckerMaker>, <Instance of Class ReSTChecker>, <Instance of Class Directory>, <Instance of Class DoctestFile>)
return value:
<None>
source: test/collect.py
|
|
def __init__(self, name, parent=None): |
self.name = name |
self.parent = parent |
self._config = getattr(parent, '_config', py.test.config) |
if parent is not None: |
if hasattr(parent, 'config'): |
py.test.pdb() |
self.fspath = getattr(parent, 'fspath', None) | |
def classnamefilter(self, name):
*no docstring available*
arguments:
- self: <UNKNOWN>
- name: <UNKNOWN>
return value:
<UNKNOWN>
def finishcapture(self):
*no docstring available*
arguments:
return value:
<None>
def funcnamefilter(self, name):
*no docstring available*
arguments:
- self: <UNKNOWN>
- name: <UNKNOWN>
return value:
<UNKNOWN>
def join(self, name):
*no docstring available*
arguments:
return value:
<Instance of AnyOf(Class Instance,
Class Instance)>
def listchain(self):
return list of all parent collectors up to ourself.
arguments:
return value:
<UNKNOWN>
source: test/collect.py
| 132 |
| 133 |
| 134 |
| 135 |
| 136 |
| 137 |
| 138 |
| 139 |
| 140 |
| 141 | |
def listchain(self): |
""" return list of all parent collectors up to ourself. """ |
l = [self] |
while 1: |
x = l[-1] |
if x.parent is not None: |
l.append(x.parent) |
else: |
l.reverse() |
return l | |
def listnames(self):
*no docstring available*
arguments:
return value:
<UNKNOWN>
def makeitem(self, name, obj, usefilters=True):
*no docstring available*
arguments:
- self: <UNKNOWN>
- name: <UNKNOWN>
- obj: <UNKNOWN>
- usefilters: <UNKNOWN>
return value:
<UNKNOWN>
source: test/collect.py
| 316 |
| 317 |
| 318 |
| 319 |
| 320 |
| 321 |
| 322 |
| 323 |
| 324 | |
def makeitem(self, name, obj, usefilters=True): |
if (not usefilters or self.classnamefilter(name)) and \ |
py.std.inspect.isclass(obj): |
return self.Class(name, parent=self) |
elif (not usefilters or self.funcnamefilter(name)) and callable(obj): |
if obj.func_code.co_flags & 32: |
return self.Generator(name, parent=self) |
else: |
return self.Function(name, parent=self) | |
def multijoin(self, namelist):
return a list of colitems for the given namelist.
arguments:
return value:
<List>
source: test/collect.py
|
|
def multijoin(self, namelist): |
""" return a list of colitems for the given namelist. """ |
return [self.join(name) for name in namelist] | |
def run(self):
*no docstring available*
arguments:
return value:
<List>
def setup(self):
*no docstring available*
arguments:
return value:
<None>
source: test/collect.py
|
|
def setup(self): |
setup_class = getattr(self.obj, 'setup_class', None) |
if setup_class is not None: |
setup_class = getattr(setup_class, 'im_func', setup_class) |
setup_class(self.obj) | |
def startcapture(self):
*no docstring available*
arguments:
return value:
<None>
def teardown(self):
*no docstring available*
arguments:
return value:
<None>
source: test/collect.py
|
|
def teardown(self): |
teardown_class = getattr(self.obj, 'teardown_class', None) |
if teardown_class is not None: |
teardown_class = getattr(teardown_class, 'im_func', teardown_class) |
teardown_class(self.obj) | |
def __cmp__(self, other):
*no docstring available*
arguments:
return value:
<Int>
source: test/collect.py
|
|
def __cmp__(self, other): |
s1 = self._getsortvalue() |
s2 = other._getsortvalue() |
|
return cmp(s1, s2) | |
def __eq__(self, other):
*no docstring available*
arguments:
return value:
<Boolean>
def __hash__(self):
*no docstring available*
arguments:
return value:
<UNKNOWN>
def __ne__(self, other):
*no docstring available*
arguments:
- self: <UNKNOWN>
- other: <UNKNOWN>
return value:
<UNKNOWN>
def __repr__(self):
*no docstring available*
arguments:
return value:
<String>