本文整理汇总了Python中nose.run_exit方法的典型用法代码示例。如果您正苦于以下问题:Python nose.run_exit方法的具体用法?Python nose.run_exit怎么用?Python nose.run_exit使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类nose
的用法示例。
在下文中一共展示了nose.run_exit方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: start
# 需要导入模块: import nose [as 别名]
# 或者: from nose import run_exit [as 别名]
def start(argv=None):
sys.exitfunc = lambda: sys.stderr.write("Shutting down...\n")
if argv is None:
argv = [
"nosetests", "--cover-branches", "--with-coverage",
"--cover-erase", "--verbose",
"--cover-package=django_drf_filepond",
]
# argv = [
# "nosetests", "--cover-branches", "--verbose",
# "--cover-package=django_drf_filepond",
# ]
nose.run_exit(argv=argv,
defaultTest=os.path.abspath(os.path.dirname(__file__)))
示例2: run_tests
# 需要导入模块: import nose [as 别名]
# 或者: from nose import run_exit [as 别名]
def run_tests(self):
# Run nose ensuring that argv simulates running nosetests directly
import nose
nose.run_exit(argv=['nosetests'])
示例3: run_tests
# 需要导入模块: import nose [as 别名]
# 或者: from nose import run_exit [as 别名]
def run_tests(self):
import nose
test_script = os.path.join('b2handle', 'tests', 'main_test_script.py')
# See also nosetests section in setup.cfg
nose.run_exit(argv=['nosetests', test_script])
# Set common test dependencies
示例4: all
# 需要导入模块: import nose [as 别名]
# 或者: from nose import run_exit [as 别名]
def all():
argv = ['nosetests', '--verbose', '--logging-level=ERROR']
nose.run_exit(argv=argv, defaultTest=abspath(dirname(__file__)))
示例5: run_tests
# 需要导入模块: import nose [as 别名]
# 或者: from nose import run_exit [as 别名]
def run_tests(self):
import nose
nose.run_exit(argv=['nosetests', '--with-xunit', '--xunit-file=test-reports/unittests.xml'])
示例6: start
# 需要导入模块: import nose [as 别名]
# 或者: from nose import run_exit [as 别名]
def start(argv=None):
sys.exitfunc = lambda: sys.stderr.write("Shutting down...\n")
if argv is None:
argv = [
"nosetests",
"--verbose",
"--with-coverage",
"--cover-erase",
"--cover-branches",
"--cover-package=drf_haystack",
]
nose.run_exit(argv=argv, defaultTest=os.path.abspath(os.path.dirname(__file__)))