def run(self, *p, **kw):
setuptools.command.test.test.run(self, *p, **kw)
python类test()的实例源码
def __init__(self, *p, **kw):
kw.setdefault('output', 'test-reports')
xmlrunner.XMLTestRunner.__init__(self, *p, **kw)
def initialize_options(self):
setuptools.command.test.test.initialize_options(self)
self.pytest_args = []
def finalize_options(self):
setuptools.command.test.test.finalize_options(self)
# New setuptools don't need this anymore, thus the try block.
try:
self.test_args = []
self.test_suite = 'True'
except AttributeError:
pass
def initialize_options(self):
setuptools.command.test.test.initialize_options(self)
self.pytest_args = []
def initialize_options(self):
setuptools.command.test.test.initialize_options(self)
self.pytest_args = []
def initialize_options(self):
setuptools.command.test.test.initialize_options(self)
self.pytest_args = []
def initialize_options(self):
setuptools.command.test.test.initialize_options(self)
def initialize_options(self):
setuptools.command.test.test.initialize_options(self)
self.pytest_args = []
def initialize_options(self):
setuptools.command.test.test.initialize_options(self)
self.pytest_args = []