alltests.py
来自「SQLAlchemy. 经典的Python ORM框架。学习必看。」· Python 代码 · 共 32 行
PY
32 行
import testenv; testenv.configure_for_tests()import unittestdef suite(): modules_to_test = ( 'orm.inheritance.basic', 'orm.inheritance.query', 'orm.inheritance.manytomany', 'orm.inheritance.single', 'orm.inheritance.concrete', 'orm.inheritance.polymorph', 'orm.inheritance.polymorph2', 'orm.inheritance.poly_linked_list', 'orm.inheritance.abc_polymorphic', 'orm.inheritance.abc_inheritance', 'orm.inheritance.productspec', 'orm.inheritance.magazine', 'orm.inheritance.selects', ) alltests = unittest.TestSuite() for name in modules_to_test: mod = __import__(name) for token in name.split('.')[1:]: mod = getattr(mod, token) alltests.addTest(unittest.findTestCases(mod, suiteClass=None)) return alltestsif __name__ == '__main__': testenv.main(suite())
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?