我们从Python开源项目中,提取了以下10个代码示例,用于说明如何使用setuptools.command.test()。
def run(self, *p, **kw): setuptools.command.test.test.run(self, *p, **kw)
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)