mirror of
https://github.com/sqlalchemy/sqlalchemy.git
synced 2026-06-03 14:29:41 -04:00
d76dc73f33
us a 2.5-frozen copy of unittest so we're insulated from unittest changes.
32 lines
770 B
Python
32 lines
770 B
Python
import testenv; testenv.configure_for_tests()
|
|
from testlib import sa_unittest as unittest
|
|
|
|
|
|
def suite():
|
|
modules_to_test = (
|
|
# connectivity, execution
|
|
'engine.parseconnect',
|
|
'engine.pool',
|
|
'engine.bind',
|
|
'engine.reconnect',
|
|
'engine.execute',
|
|
'engine.metadata',
|
|
'engine.transaction',
|
|
|
|
# schema/tables
|
|
'engine.reflection',
|
|
'engine.ddlevents',
|
|
|
|
)
|
|
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__':
|
|
testenv.main(suite())
|