mirror of
https://github.com/sqlalchemy/sqlalchemy.git
synced 2026-05-14 12:47:22 -04:00
c0b5a0446b
tests extend from either TestBase or ORMTest, using additional mixins for special assertion methods as needed
24 lines
846 B
Python
24 lines
846 B
Python
"""Enhance unittest and instrument SQLAlchemy classes for testing.
|
|
|
|
Load after sqlalchemy imports to use instrumented stand-ins like Table.
|
|
"""
|
|
|
|
import testlib.config
|
|
from testlib.schema import Table, Column
|
|
from testlib.orm import mapper
|
|
import testlib.testing as testing
|
|
from testlib.testing import rowset
|
|
from testlib.testing import TestBase, AssertsExecutionResults, ORMTest, AssertsCompiledSQL, ComparesTables
|
|
import testlib.profiling as profiling
|
|
import testlib.engines as engines
|
|
from testlib.compat import set, frozenset, sorted, _function_named
|
|
|
|
|
|
__all__ = ('testing',
|
|
'mapper',
|
|
'Table', 'Column',
|
|
'rowset',
|
|
'TestBase', 'AssertsExecutionResults', 'ORMTest', 'AssertsCompiledSQL', 'ComparesTables',
|
|
'profiling', 'engines',
|
|
'set', 'frozenset', 'sorted', '_function_named')
|