Undocumented
Class |
|
Undocumented |
Class |
|
No class docstring; 1/11 method documented |
Class |
|
Undocumented |
Class |
|
Undocumented |
Function | assert |
Undocumented |
Function | assert |
Undocumented |
Function | assert |
Undocumented |
Function | assert |
Undocumented |
Function | assert |
legacy adapter function for functions that were previously using assert_raises with SAWarning or similar. |
Function | assert |
legacy adapter function for functions that were previously using assert_raises with SAWarning or similar. |
Function | emits |
Decorator form of expect_warnings(). |
Function | emits |
Mark a test as emitting a warning on a specific dialect. |
Function | eq_ |
Assert a == b, with repr messaging on failure. |
Function | eq |
Undocumented |
Function | eq |
Undocumented |
Function | expect |
Undocumented |
Function | expect |
Undocumented |
Function | expect |
Undocumented |
Function | expect |
Undocumented |
Function | expect |
Context manager which expects one or more warnings. |
Function | expect |
Context manager which expects one or more warnings on specific dialects. |
Function | global |
Check things that have to be finalized at the end of a test suite. |
Function | in_ |
Assert a in b, with repr messaging on failure. |
Function | int |
Undocumented |
Function | is_ |
Assert a is b, with repr messaging on failure. |
Function | is |
Undocumented |
Function | is |
Undocumented |
Function | is |
Undocumented |
Function | is |
Assert a is not b, with repr messaging on failure. |
Function | is |
Undocumented |
Function | is |
Undocumented |
Function | le_ |
Assert a <= b, with repr messaging on failure. |
Function | ne_ |
Assert a != b, with repr messaging on failure. |
Function | not |
Assert a in not b, with repr messaging on failure. |
Function | startswith_ |
Assert a.startswith(fragment), with repr messaging on failure. |
Function | uses |
Mark a test as immune from fatal deprecation warnings. |
Class | _ |
Undocumented |
Function | _assert |
Undocumented |
Function | _assert |
assert that any exception we're catching does not have a __context__ without a __cause__, and that __suppress_context__ is never set. |
Function | _assert |
Undocumented |
Function | _expect |
Undocumented |
Function | _expect |
Undocumented |
Constant | _EXC |
Undocumented |
Constant | _FILTERS |
Undocumented |
Constant | _SEEN |
Undocumented |
legacy adapter function for functions that were previously using assert_raises with SAWarning or similar. has some workarounds to accommodate the fact that the callable completes with this approach rather than stopping at the exception raise.
legacy adapter function for functions that were previously using assert_raises with SAWarning or similar. has some workarounds to accommodate the fact that the callable completes with this approach rather than stopping at the exception raise. Also uses regex.search() to match the given message to the error string rather than regex.match().
Decorator form of expect_warnings(). Note that emits_warning does **not** assert that the warnings were in fact seen.
Mark a test as emitting a warning on a specific dialect. With no arguments, squelches all SAWarning failures. Or pass one or more strings; these will be matched to the root of the warning description by warnings.filterwarnings(). Note that emits_warning_on does **not** assert that the warnings were in fact seen.
Context manager which expects one or more warnings. With no arguments, squelches all SAWarning emitted via sqlalchemy.util.warn and sqlalchemy.util.warn_limited. Otherwise pass string expressions that will match selected warnings via regex; all non-matching warnings are sent through. The expect version **asserts** that the warnings were in fact seen. Note that the test suite sets SAWarning warnings to raise exceptions.
Context manager which expects one or more warnings on specific dialects. The expect version **asserts** that the warnings were in fact seen.
Check things that have to be finalized at the end of a test suite. Hardcoded at the moment, a modular system can be built here to support things like PG prepared transactions, tables all dropped, etc.
Mark a test as immune from fatal deprecation warnings. With no arguments, squelches all SADeprecationWarning failures. Or pass one or more strings; these will be matched to the root of the warning description by warnings.filterwarnings(). As a special case, you may pass a function name prefixed with // and it will be re-written as needed to match the standard warning verbiage emitted by the sqlalchemy.util.deprecated decorator. Note that uses_deprecated does **not** assert that the warnings were in fact seen.
assert that any exception we're catching does not have a __context__ without a __cause__, and that __suppress_context__ is never set. Python 3 will report nested as exceptions as "during the handling of error X, error Y occurred". That's not what we want to do. we want these exceptions in a cause chain.
def _expect_raises(except_cls, msg=None, check_context=False): (source) ¶
Undocumented