mirror of
https://github.com/sqlalchemy/sqlalchemy.git
synced 2026-06-03 06:19:59 -04:00
17d3c8764e
- Importing testenv has no side effects- explicit functions provide similar behavior to the old immediate behavior of testbase - testing.db has the configured db - Fixed up the perf/* scripts
29 lines
700 B
Python
29 lines
700 B
Python
import testenv; testenv.configure_for_tests()
|
|
import unittest
|
|
|
|
|
|
def suite():
|
|
modules_to_test = (
|
|
'dialect.access',
|
|
'dialect.firebird',
|
|
'dialect.informix',
|
|
'dialect.maxdb',
|
|
'dialect.mssql',
|
|
'dialect.mysql',
|
|
'dialect.oracle',
|
|
'dialect.postgres',
|
|
'dialect.sqlite',
|
|
'dialect.sybase',
|
|
)
|
|
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())
|