本文整理匯總了Python中nose.config.Config.ignoreFiles方法的典型用法代碼示例。如果您正苦於以下問題:Python Config.ignoreFiles方法的具體用法?Python Config.ignoreFiles怎麽用?Python Config.ignoreFiles使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類nose.config.Config
的用法示例。
在下文中一共展示了Config.ignoreFiles方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: test_ignore_files_override
# 需要導入模塊: from nose.config import Config [as 別名]
# 或者: from nose.config.Config import ignoreFiles [as 別名]
def test_ignore_files_override(self):
"""Override the configuration to skip only specified files."""
c = Config()
c.ignoreFiles = [re.compile(r'^test_favourite_colour\.py$')]
s = Selector(c)
assert s.wantFile('_test_underscore.py')
assert s.wantFile('.test_hidden.py')
assert not s.wantFile('setup.py') # Actually excluded because of testMatch
assert not s.wantFile('test_favourite_colour.py')
示例2: _execPlugin
# 需要導入模塊: from nose.config import Config [as 別名]
# 或者: from nose.config.Config import ignoreFiles [as 別名]
def _execPlugin(self):
"""execute the plugin on the internal test suite.
"""
from nose.config import Config
from nose.core import TestProgram
from nose.plugins.manager import PluginManager
suite = None
stream = Buffer()
conf = Config(env=self.env,
stream=stream,
plugins=PluginManager(plugins=self.plugins))
if self.ignoreFiles is not None:
conf.ignoreFiles = self.ignoreFiles
if not self.suitepath:
suite = self.makeSuite()
self.nose = TestProgram(argv=self.argv, config=conf, suite=suite,
exit=False)
self.output = AccessDecorator(stream)