mirror of
https://github.com/sqlalchemy/sqlalchemy.git
synced 2026-05-15 13:17:24 -04:00
9e8fad2abc
turned on for individual table, schema, and column identifiers when used in all queries/creates/drops. Enabled via "quote=True" in Table or Column, as well as "quote_schema=True" in Table. Thanks to Aaron Spike for his excellent efforts. [ticket:155]
34 lines
730 B
Python
34 lines
730 B
Python
import testbase
|
|
import unittest
|
|
|
|
|
|
def suite():
|
|
modules_to_test = (
|
|
'sql.testtypes',
|
|
'sql.indexes',
|
|
|
|
# SQL syntax
|
|
'sql.select',
|
|
'sql.selectable',
|
|
'sql.case_statement',
|
|
|
|
# assorted round-trip tests
|
|
'sql.query',
|
|
'sql.quote',
|
|
|
|
# defaults, sequences (postgres/oracle)
|
|
'sql.defaults',
|
|
)
|
|
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 alltests
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
testbase.runTests(suite())
|