本文整理汇总了Python中testenv.configure_for_tests函数的典型用法代码示例。如果您正苦于以下问题:Python configure_for_tests函数的具体用法?Python configure_for_tests怎么用?Python configure_for_tests使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了configure_for_tests函数的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: suite
import testenv; testenv.configure_for_tests()
import unittest
import orm.alltests as orm
import base.alltests as base
import sql.alltests as sql
import engine.alltests as engine
import dialect.alltests as dialect
import ext.alltests as ext
import zblog.alltests as zblog
import profiling.alltests as profiling
# The profiling tests are sensitive to foibles of CPython VM state, so
# run them first. Ideally, each should be run in a fresh interpreter.
def suite():
alltests = unittest.TestSuite()
for suite in (profiling, base, engine, sql, dialect, orm, ext, zblog):
alltests.addTest(suite.suite())
return alltests
if __name__ == '__main__':
testenv.main(suite())