test.config API [rev. unknown]

class instance of Config():

central hub for dealing with configuration/initialization data.
no source available

class attributes and properties:

args: ['/build/buildd/codespeak-lib-0.9.1/py']
option: <CmdOptions {'nocapture': False, 'verbose': 0, 'apigen': '/build/buildd/codespeak-lib-0.9.1/py/apige...
topdir: /build/buildd/codespeak-lib-0.9.1

methods:

def __init__(self):

*no docstring available*

def addoptions(self, groupname, *specs):

add a named group of options to the current testing session. This function gets invoked during testing session initialization.

def get_collector_trail(self, collector):

provide a trail relative to the topdir, which can be used to reconstruct the collector (possibly on a different host starting from a different topdir).

def getcolitems(self):

return initial collectors.

def getvalue(self, name, path=None):

return 'name' value looked up from the 'options' and then from the first conftest file found up the path (including the path itself). if path is None, lookup the value in the initial conftest modules found during command line parsing.

def getvalue_pathlist(self, name, path=None):

return a matching value, which needs to be sequence of filenames that will be returned as a list of Path objects (they can be relative to the location where they were found).

def initsession(self):

def parse(self, args):

parse cmdline arguments into this config object. Note that this can only be called once per testing process.