Adding upstream version 6.0.4.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
d01130b3f1
commit
527597d2af
122 changed files with 23162 additions and 0 deletions
tests
30
tests/test_docs.py
Normal file
30
tests/test_docs.py
Normal file
|
@ -0,0 +1,30 @@
|
|||
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…
Add table
Add a link
Reference in a new issue