📄 alltests.py
字号:
import testenv; testenv.configure_for_tests()import unittestimport inheritance.alltests as inheritanceimport sharding.alltests as shardingdef suite(): modules_to_test = ( 'orm.attributes', 'orm.query', 'orm.lazy_relations', 'orm.eager_relations', 'orm.mapper', 'orm.expire', 'orm.selectable', 'orm.collection', 'orm.generative', 'orm.lazytest1', 'orm.assorted_eager', 'orm.naturalpks', 'orm.sessioncontext', 'orm.unitofwork', 'orm.session', 'orm.cascade', 'orm.relationships', 'orm.association', 'orm.merge', 'orm.pickled', 'orm.memusage', 'orm.cycles', 'orm.entity', 'orm.compile', 'orm.manytomany', 'orm.onetoone', 'orm.dynamic', ) 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)) alltests.addTest(inheritance.suite()) alltests.addTest(sharding.suite()) return alltestsif __name__ == '__main__': testenv.main(suite())
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -