MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / fail

Method fail

test/orm/test_transaction.py:650–651  ·  view source on GitHub ↗
(*arg, **kw)

Source from the content-addressed store, hash-verified

648 sess = fixture_session()
649
650 def fail(*arg, **kw):
651 raise BaseException("some base exception")
652
653 with mock.patch.object(
654 testing.db.dialect, "do_rollback", side_effect=fail

Callers 15

test_dupe_col_nameMethod · 0.45
ResultClass · 0.45
nameMethod · 0.45
test_dml_ctesMethod · 0.45
test_aliased_updateMethod · 0.45
test_aliased_deleteMethod · 0.45
test_add_cteMethod · 0.45
crud_table_fixtureMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected