1 Star 0 Fork 0

mylovextt/sqlglot

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
test_docs.py 563 Bytes
一键复制 编辑 原始数据 按行查看 历史
tobymao 提交于 2022-09-07 00:26 +08:00 . cleanup pylint
import doctest
import inspect
import unittest
import sqlglot
import sqlglot.optimizer
import sqlglot.transforms
def load_tests(loader, tests, ignore):
"""
This finds and runs all the doctests
"""
modules = {
mod
for module in [sqlglot, sqlglot.transforms, sqlglot.optimizer]
for _, mod in inspect.getmembers(module, inspect.ismodule)
}
assert len(modules) >= 20
for module in modules:
tests.addTests(doctest.DocTestSuite(module))
return tests
if __name__ == "__main__":
unittest.main()
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mylovextt/sqlglot.git
git@gitee.com:mylovextt/sqlglot.git
mylovextt
sqlglot
sqlglot
main

搜索帮助