MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _translating_dialect_fixture

Method _translating_dialect_fixture

test/base/test_except.py:60–65  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

58 )
59
60 def _translating_dialect_fixture(self):
61 d = default.DefaultDialect()
62 d.dbapi_exception_translation_map = {
63 "WrongNameError": "IntegrityError"
64 }
65 return d
66
67 def test_db_error_normal(self):
68 try:

Calls

no outgoing calls

Tested by

no test coverage detected