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

Method mock_engine

test/engine/test_ddlevents.py:954–965  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

952
953class DDLTest(fixtures.TestBase, AssertsCompiledSQL):
954 def mock_engine(self):
955 def executor(*a, **kw):
956 return None
957
958 engine = create_mock_engine(testing.db.name + "://", executor)
959 # fmt: off
960 engine.dialect.identifier_preparer = \
961 tsa.sql.compiler.IdentifierPreparer(
962 engine.dialect
963 )
964 # fmt: on
965 return engine
966
967 def test_tokens(self):
968 m = MetaData()

Callers 8

test_tokensMethod · 0.95
test_filterMethod · 0.95
test_use_alterMethod · 0.80
setup_testMethod · 0.80
setup_testMethod · 0.80

Calls 1

create_mock_engineFunction · 0.90

Tested by

no test coverage detected