diff options
Diffstat (limited to 'test/testlib/__init__.py')
| -rw-r--r-- | test/testlib/__init__.py | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/test/testlib/__init__.py b/test/testlib/__init__.py deleted file mode 100644 index 5b8075ddb..000000000 --- a/test/testlib/__init__.py +++ /dev/null @@ -1,38 +0,0 @@ -"""Enhance unittest and instrument SQLAlchemy classes for testing. - -Load after sqlalchemy imports to use instrumented stand-ins like Table. -""" - -import sys -import testlib.config -from testlib.schema import Table, Column -import testlib.testing as testing -from testlib.testing import \ - AssertsCompiledSQL, \ - AssertsExecutionResults, \ - ComparesTables, \ - TestBase, \ - rowset -from testlib.orm import mapper -import testlib.profiling as profiling -import testlib.engines as engines -import testlib.requires as requires -from testlib.compat import _function_named - - -__all__ = ('testing', - 'mapper', - 'Table', 'Column', - 'rowset', - 'TestBase', 'AssertsExecutionResults', - 'AssertsCompiledSQL', 'ComparesTables', - 'profiling', 'engines', - '_function_named') - - -testing.requires = requires - -sys.modules['testlib.sa'] = sa = testing.CompositeModule( - 'testlib.sa', 'sqlalchemy', 'testlib.schema', orm=testing.CompositeModule( - 'testlib.sa.orm', 'sqlalchemy.orm', 'testlib.orm')) -sys.modules['testlib.sa.orm'] = sa.orm |
