mirror of
https://github.com/sqlalchemy/sqlalchemy.git
synced 2026-05-15 13:17:24 -04:00
9d7c027cb7
- Added an explicit test for exception wrapping.
22 lines
504 B
Python
22 lines
504 B
Python
import testbase
|
|
import unittest
|
|
|
|
def suite():
|
|
modules_to_test = (
|
|
# core utilities
|
|
'base.dependency',
|
|
'base.utils',
|
|
'base.except',
|
|
)
|
|
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.main(suite())
|