2014-05-05 00:05:43 -04:00
|
|
|
# testing/__init__.py
|
|
|
|
# Copyright (C) 2005-2014 the SQLAlchemy authors and contributors <see AUTHORS file>
|
|
|
|
#
|
|
|
|
# This module is part of SQLAlchemy and is released under
|
|
|
|
# the MIT License: http://www.opensource.org/licenses/mit-license.php
|
|
|
|
|
2014-05-04 23:25:51 -04:00
|
|
|
|
|
|
|
from .warnings import testing_warn, assert_warnings, resetwarnings
|
|
|
|
|
|
|
|
from . import config
|
|
|
|
|
|
|
|
from .exclusions import db_spec, _is_excluded, fails_if, skip_if, future,\
|
2014-05-05 00:05:43 -04:00
|
|
|
fails_on, fails_on_everything_except, skip, only_on, exclude, \
|
|
|
|
against as _against, _server_version, only_if
|
|
|
|
|
|
|
|
|
|
|
|
def against(*queries):
|
|
|
|
return _against(config._current, *queries)
|
2014-05-04 23:25:51 -04:00
|
|
|
|
|
|
|
from .assertions import emits_warning, emits_warning_on, uses_deprecated, \
|
|
|
|
eq_, ne_, is_, is_not_, startswith_, assert_raises, \
|
|
|
|
assert_raises_message, AssertsCompiledSQL, ComparesTables, \
|
2014-05-05 00:05:43 -04:00
|
|
|
AssertsExecutionResults, expect_deprecated
|
2014-05-04 23:25:51 -04:00
|
|
|
|
|
|
|
from .util import run_as_contextmanager, rowset, fail, provide_metadata, adict
|
|
|
|
|
|
|
|
crashes = skip
|
|
|
|
|
2014-05-05 00:05:43 -04:00
|
|
|
from .config import db
|
|
|
|
from .config import requirements as requires
|
2014-05-04 23:25:51 -04:00
|
|
|
|
2014-05-05 00:05:43 -04:00
|
|
|
from . import mock
|