Files
sqlalchemy/test/ext/alltests.py
T
Jason Kirtland 412c80dd6c - 2.3 fixup, part two: 100% passing for sqlite
- added 2.4-style binops to util.Set on 2.3
  - OrderedSets pickle on 2.3
  - more lib/sqlalchemy set vs Set corrections
  - fixed InstrumentedSet.discard for 2.3
  - set, sorted compatibility for test suite
- added testing.fails_if decorator
2008-01-21 23:19:39 +00:00

28 lines
812 B
Python

import testenv; testenv.configure_for_tests()
import doctest, sys, unittest
def suite():
unittest_modules = ['ext.activemapper',
'ext.assignmapper',
'ext.orderinglist',
'ext.associationproxy']
if sys.version_info >= (2, 4):
doctest_modules = ['sqlalchemy.ext.sqlsoup']
else:
doctest_modules = []
alltests = unittest.TestSuite()
for name in unittest_modules:
mod = __import__(name)
for token in name.split('.')[1:]:
mod = getattr(mod, token)
alltests.addTest(unittest.findTestCases(mod, suiteClass=None))
for name in doctest_modules:
alltests.addTest(doctest.DocTestSuite(name))
return alltests
if __name__ == '__main__':
testenv.main(suite())