1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
# testing/__init__.py
# Copyright (C) 2005-2018 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
from .warnings import assert_warnings
from . import config
from .exclusions import (
db_spec,
_is_excluded,
fails_if,
skip_if,
future,
fails_on,
fails_on_everything_except,
skip,
only_on,
exclude,
against as _against,
_server_version,
only_if,
fails,
)
def against(*queries):
return _against(config._current, *queries)
from .assertions import (
emits_warning,
emits_warning_on,
uses_deprecated,
eq_,
ne_,
le_,
is_,
is_not_,
startswith_,
assert_raises,
assert_raises_message,
AssertsCompiledSQL,
ComparesTables,
AssertsExecutionResults,
expect_deprecated,
expect_warnings,
in_,
not_in_,
eq_ignore_whitespace,
eq_regex,
is_true,
is_false,
)
from .util import (
run_as_contextmanager,
rowset,
fail,
provide_metadata,
adict,
force_drop_names,
teardown_events,
)
crashes = skip
from .config import db
from .config import requirements as requires
from . import mock
|